Skip to content
class

LogisticNormal

extendsTransformedDistribution
LogisticNormal(loc: Tensor | float, scale: Tensor | float, validate_args: bool | None = None)

Logistic-Normal distribution on the open KK-simplex.

Pushes a batch of K−1K - 1 Normal random variables through lucid.distributions.transforms.StickBreakingTransform to produce a distribution on the KK-simplex ΔK−1\Delta^{K-1}:

x∼N(μ,diag⁡(σ2)),y=StickBreakingTransform⁡(x)∈ΔK−1\mathbf{x} \sim \mathcal{N}(\boldsymbol{\mu}, \operatorname{diag}(\boldsymbol{\sigma}^2)), \qquad \mathbf{y} = \operatorname{StickBreakingTransform}(\mathbf{x}) \in \Delta^{K-1}

Parameters

locTensor or float
Mean μ\boldsymbol{\mu} of the underlying Normal distribution.
scaleTensor or float
Standard deviation σ>0\boldsymbol{\sigma} > 0 of the underlying Normal distribution.
validate_argsbool | None= None
If True, validate parameter constraints at construction time.

Used by 1

Constructors

1
dunder

__init__

→None
__init__(loc: Tensor | float, scale: Tensor | float, validate_args: bool | None = None)

Initialise a LogisticNormal distribution.

Properties

2
prop

loc

→Tensor
loc: Tensor

Mean parameter of the underlying Normal distribution.

prop

scale

→Tensor
scale: Tensor

Scale parameter of the underlying Normal distribution.

Instance methods

1
fn

expand

→Self
expand(batch_shape: Sequence[int], _instance: Self | None = None)

Return a new LogisticNormal instance expanded to batch_shape.