distributions
57 memberslucid.distributions`lucid.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
Bernoulli11 methodsBernoulli distribution over .
Geometric9 methodsGeometric distribution: number of failures before the first success.
Categorical12 methodsCategorical distribution — a discrete distribution over K labelled outcomes.
OneHotCategorical12 methodsCategorical distribution with one-hot encoded samples.
FisherSnedecor6 methodsFisher-Snedecor F-distribution — ratio of two scaled Chi-squared variates.
HalfCauchy10 methodsHalf-Cauchy distribution — the absolute value of a zero-location Cauchy.
HalfNormal9 methodsHalf-Normal distribution — the absolute value of a zero-mean Normal.
Pareto10 methodsPareto distribution — a heavy-tailed power-law family on .
Weibull10 methodsWeibull distribution — a flexible family for lifetime and survival analysis.
Binomial11 methodsBinomial distribution over the number of successes in n independent trials.
NegativeBinomial8 methodsNegative Binomial distribution over the number of failures before r successes.
Poisson7 methodsPoisson distribution over the non-negative integers.
Distribution18 methodsAbstract base for a probability distribution.
ExponentialFamily1 methodsMix-in for exponential-family distributions.
Cauchy10 methodsCauchy distribution on — heavy-tailed, all moments undefined.
Exponential9 methodsExponential distribution on .
Laplace9 methodsLaplace (double-exponential) distribution on .
Beta7 methodsBeta distribution on the open interval .
Chi21 methodsChi-squared distribution with degrees of freedom.
Dirichlet7 methodsDirichlet distribution on the -simplex.
Gamma8 methodsGamma distribution on — shape/rate parameterisation.
Independent11 methodsRe-interpret rightmost batch dimensions of a base distribution as event dims.
MixtureSameFamily7 methodsFinite mixture model where all components share the same distribution family.
MultivariateNormal9 methodsMultivariate Normal (Gaussian) distribution in .
LogNormal9 methodsLog-Normal distribution: where .
Normal10 methodsUnivariate Gaussian (Normal) distribution .
RelaxedBernoulli5 methodsConcrete (Gumbel-sigmoid) relaxation of the Bernoulli distribution.
RelaxedOneHotCategorical5 methodsConcrete distribution — a continuous relaxation of OneHotCategorical.
StudentT8 methodsStudent's t-distribution with location, scale, and degrees of freedom.
TransformedDistribution5 methodsPushforward of a base distribution through a (composite) bijector.
AbsTransform1 methodsElement-wise absolute value (folded, not bijective).
AffineTransform4 methodsElement-wise affine bijection .
CatTransform4 methodsApply different transforms to contiguous partitions along an axis.
ComposeTransform6 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 .
IndependentTransform6 methodsReinterpret n trailing batch dimensions of an inner transform as event dims.
LowerCholeskyTransform1 methodsBijection mapping an unconstrained matrix to a positive-diagonal Cholesky factor.
PowerTransform2 methodsElement-wise power bijection .
ReshapeTransform6 methodsPure-shape reinterpretation of the event shape .
SigmoidTransform1 methodsElement-wise sigmoid bijection .
SoftmaxTransform1 methodsSoftmax 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 .
Transform9 methodsAbstract bijection between two measurable spaces.
ContinuousBernoulli10 methodsContinuous Bernoulli distribution on .
Gumbel9 methodsGumbel (Type-I extreme value) distribution on .
InverseGamma8 methodsInverse-Gamma distribution on .
Kumaraswamy9 methodsKumaraswamy distribution on .
Multinomial10 methodsMultinomial distribution over categories.
LKJCholesky4 methodsLKJ distribution over Cholesky factors of correlation matrices.
Wishart9 methodsWishart distribution over symmetric positive-definite matrices.
Uniform10 methodsContinuous Uniform distribution on the half-open interval .