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. |
|
Computes the expected saturating cost for a Gaussian-distributed state. |
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¶
|
Symmetric logarithm: |
|
Symmetric exponential: |
|
Encode a scalar tensor as a two-hot distribution over |
|
Decode a distribution over |