clipppy.utils.distributions.extra_delta¶
Module Contents¶
- class clipppy.utils.distributions.extra_delta.ExtraDelta(*args, extra_event_dim: int, **kwargs)¶
Degenerate discrete distribution (a single point).
Discrete distribution that assigns probability one to the single element in its support. Delta distribution parameterized by a random choice should not be used with MCMC based inference, as doing so produces incorrect results.
- Parameters
v (torch.Tensor) – The single support element.
log_density (torch.Tensor) – An optional density for this Delta. This is useful to keep the class of
Deltadistributions closed under differentiable transformation.event_dim (int) – Optional event dimension, defaults to zero.