distributions
65 memberslucid.distributionslucid.distributions — probability distributions with the
reference-framework's interface (sample / rsample / log_prob / entropy / …).
Mirrors the reference framework's distributions surface for the most-used univariate and
discrete families plus MultivariateNormal, Beta, Gamma, and
Dirichlet from the gamma family. See [[api-python-distributions]]
for the full surface.
Classes
Bernoulli12 methodsBernoulli distribution over .
Geometric10 methodsGeometric distribution: number of failures before the first success.
Categorical13 methodsCategorical distribution — a discrete distribution over K labelled outcomes.
OneHotCategorical13 methodsCategorical distribution with one-hot encoded samples.
OneHotCategoricalStraightThrough2 methodsReparameterisable OneHotCategorical based on the straight-through gradient estimator.
ConstraintRegistry3 methodsRegistry linking Constraint instances or classes to Transform factories.
PositiveDefiniteTransform1 methodsMap from unconstrained matrices to symmetric positive-definite matrices.
SoftplusTransform1 methodsElement-wise softplus bijection .
FisherSnedecor8 methodsFisher-Snedecor F-distribution — ratio of two scaled Chi-squared variates.
HalfCauchy11 methodsHalf-Cauchy distribution — the absolute value of a zero-location Cauchy.
HalfNormal10 methodsHalf-Normal distribution — the absolute value of a zero-mean Normal.
Pareto11 methodsPareto distribution — a heavy-tailed power-law family on .
Weibull11 methodsWeibull distribution — a flexible family for lifetime and survival analysis.
Binomial12 methodsBinomial distribution over the number of successes in n independent trials.
NegativeBinomial9 methodsNegative Binomial distribution over the number of failures before r successes.
Poisson8 methodsPoisson distribution over the non-negative integers.
Distribution20 methodsAbstract base for a probability distribution.
ExponentialFamily1 methodsMix-in for exponential-family distributions.
Cauchy11 methodsCauchy distribution on — heavy-tailed, all moments undefined.
Exponential10 methodsExponential distribution on .
Laplace10 methodsLaplace (double-exponential) distribution on .
ContinuousBernoulli11 methodsContinuous Bernoulli distribution on .
Gumbel10 methodsGumbel (Type-I extreme value) distribution on .
InverseGamma10 methodsInverse-Gamma distribution on .
Kumaraswamy10 methodsKumaraswamy distribution on .
Multinomial11 methodsMultinomial distribution over categories.
Beta9 methodsBeta distribution on the open interval .
Chi22 methodsChi-squared distribution with degrees of freedom.
Dirichlet9 methodsDirichlet distribution on the -simplex.
Gamma10 methodsGamma distribution on — shape/rate parameterisation.
Independent11 methodsRe-interpret rightmost batch dimensions of a base distribution as event dims.
LKJCholesky5 methodsLKJ distribution over Cholesky factors of correlation matrices.
Wishart12 methodsWishart distribution over symmetric positive-definite matrices.
MixtureSameFamily8 methodsFinite mixture model where all components share the same distribution family.
LowRankMultivariateNormal11 methodsMultivariate Normal distribution with low-rank plus diagonal covariance.
MultivariateNormal10 methodsMultivariate Normal (Gaussian) distribution in .
LogNormal10 methodsLog-Normal distribution: where .
Normal11 methodsUnivariate Gaussian (Normal) distribution .
RelaxedBernoulli5 methodsConcrete (Gumbel-sigmoid) relaxation of the Bernoulli distribution.
RelaxedOneHotCategorical5 methodsConcrete distribution — a continuous relaxation of OneHotCategorical.
StudentT9 methodsStudent's t-distribution with location, scale, and degrees of freedom.
TransformedDistribution8 methodsPushforward of a base distribution through a (composite) bijector.
AbsTransformElement-wise absolute value (folded, not bijective).
AffineTransform5 methodsElement-wise affine bijection .
CatTransform4 methodsApply different transforms to contiguous partitions along an axis.
ComposeTransform7 methodsFunction composition of a list of transforms — left-to-right.
CorrCholeskyTransform4 methodsBijection from to Cholesky factors of correlation matrices.
CumulativeDistributionTransform3 methodsProbability-integral transform via a base distribution's CDF.
ExpTransform1 methodsElement-wise exponential bijection .
IndependentTransform7 methodsReinterpret n trailing batch dimensions of an inner transform as event dims.
LowerCholeskyTransform1 methodsMap an unconstrained matrix to a positive-diagonal lower-triangular factor.
PowerTransform3 methodsElement-wise power bijection .
ReshapeTransform6 methodsPure-shape reinterpretation of the event shape .
SigmoidTransform1 methodsElement-wise sigmoid bijection .
SoftmaxTransformSoftmax transform mapping .
StackTransform4 methodsApply a list of transforms to indexed slices along a stack axis.
StickBreakingTransform3 methodsLogistic stick-breaking bijection .
TanhTransform1 methodsElement-wise hyperbolic tangent bijection .
Transform10 methodsAbstract bijection between two measurable spaces.
Uniform11 methodsContinuous Uniform distribution on the half-open interval .
GeneralizedPareto13 methodsGeneralised Pareto distribution for modelling distribution tails.
LogisticNormal4 methodsLogistic-Normal distribution on the open -simplex.
VonMises7 methodsCircular Von Mises distribution on .