Distribution Classes#
Custom distribution classes for RL, extending PyTorch distributions.
|
Delta distribution. |
|
Implements a Normal distribution with location scaling. |
|
MaskedCategorical distribution. |
|
A non-parametric nn.Module that splits its input into loc and scale parameters. |
|
One-hot categorical distribution. |
|
|
|
Implements a Tanh transformed_in Delta distribution. |
|
Implements a TanhNormal distribution with location scaling. |
|
Implements a Truncated Normal distribution with location scaling. |
Sampling utilities#
|
Sample once and score the same draw atomically when supported. |
|
Reparameterize once and score the same draw atomically when supported. |
|
Compute component entropy without inverse-scoring Monte Carlo samples. |