Other Loss Modules#
Additional loss modules for specialized algorithms.
|
Loss module for Action Chunking with Transformers (ACT). |
|
Behavior Cloning Loss Module. |
|
Behavioural Cloning loss for diffusion-based policies. |
|
TorchRL implementation of the Generative Adversarial Imitation Learning (GAIL) loss. |
|
TorchRL implementation of the Online Decision Transformer loss. |
|
TorchRL implementation of the Online Decision Transformer loss. |
|
Dreamer Actor Loss. |
|
Dreamer Model Loss. |
|
Dreamer Value Loss. |
|
A general loss module for model-based world models. |
|
Computes the expected saturating cost for a Gaussian-distributed state. |
|
Loss module for training the predictor network in Random Network Distillation. |
DreamerV3#
Loss modules for DreamerV3 (Mastering Diverse Domains in World Models, Hafner et al. 2023). Key differences from V1: discrete categorical latent state, KL balancing, symlog transforms, and two-hot value distributions.
|
DreamerV3 Actor Loss. |
|
DreamerV3 World Model Loss. |
|
DreamerV3 Value Loss. |
DreamerV3 Utilities#
|
Apply the element-wise symmetric logarithm transform. |
|
Apply the inverse symmetric exponential transform element-wise. |
|
Encode raw scalar values on a sorted two-hot support. |
|
Decode logits over a raw-value support to their scalar expectation. |
|
Return two-hot cross entropy for raw scalar targets. |
|
Return DreamerV3 dynamics and representation KL losses. |