Skip to main content

Module bc

Module bc 

Source
Expand description

Behavioral Cloning (BC) — supervised imitation learning.

Behavioral cloning trains a policy to reproduce expert actions from a fixed dataset of (observation, action) pairs via supervised cross-entropy. It lands as a sibling module to crate::train::a2c, reusing the same policy/optimizer infrastructure with a plain supervised epoch loop in place of an environment-interaction loop.

This module is built incrementally by the BC decomposition (#161):

Re-exports§

pub use config::BcConfig;
pub use dataset::Demonstrations;
pub use loss::compute_bc_loss;
pub use trainer::BcEpochStats;
pub use trainer::BcTrainer;

Modules§

config
Behavioral Cloning (BC) configuration and hyperparameters.
dataset
Fixed dataset of expert demonstrations for Behavioral Cloning.
loss
Behavioral Cloning loss math (Burn backend).
trainer
Behavioral Cloning trainer (Burn backend).