starling.data.distributions.DiagonalGaussianDistribution
- class DiagonalGaussianDistribution[source]
Bases:
objectMethods
Diagonal Gaussian distribution that can be used for sampling from given certain parameters.
Return the mode of the distribution.
Sample from the parameterized distribution.
- __init__(parameters: Tensor, deterministic: bool = False)[source]
Diagonal Gaussian distribution that can be used for sampling from given certain parameters.
- Parameters:
parameters (torch.Tensor) – Parameters of the distribution.
deterministic (bool, optional) – Whether to sample deterministically, by default False
- sample() Tensor[source]
Sample from the parameterized distribution.
- Returns:
The sampled value.
- Return type: