protomotions.agents.supervised.masked_mimic_model module#
MaskedMimic VAE student for the generic supervised agent.
MaskedMimic is trained by SupervisedAgent, but the architecture itself is
not generic supervised-agent machinery. It is a VAE learned-prior student:
priorpredicts a deployable latent distribution from sparse observations.encoderpredicts a privileged residual posterior during training.trunkdecodes latent samples to actions.
Keeping this model named after MaskedMimic makes experiment files searchable and keeps the VAE-specific KL/noise logic out of the generic supervised loop.
- class protomotions.agents.supervised.masked_mimic_model.MaskedMimicModel(*args, **kwargs)[source]#
Bases:
BaseModelMaskedMimic learned-prior VAE student.
The non-privileged path is used at inference: prior -> latent sample -> trunk. During supervised training, the privileged encoder adds a residual posterior path that produces
privileged_actionfor the imitation loss and a KL term against the prior distribution.