Module: tfp.experimental.substrates.numpy.distributions

Statistical distributions.

Classes

class Autoregressive: Autoregressive distributions.

class BatchReshape: The Batch-Reshaping distribution.

class Bates: Bates distribution.

class Bernoulli: Bernoulli distribution.

class Beta: Beta distribution.

class BetaBinomial: Beta-Binomial compound distribution.

class Binomial: Binomial distribution.

class Blockwise: Blockwise distribution.

class Categorical: Categorical distribution over integers.

class Cauchy: The Cauchy distribution with location loc and scale scale.

class Chi: Chi distribution.

class Chi2: Chi2 distribution.

class CholeskyLKJ: The CholeskyLKJ distribution on cholesky factors of correlation matrices.

class Deterministic: Scalar Deterministic distribution on the real line.

class Dirichlet: Dirichlet distribution.

class DirichletMultinomial: Dirichlet-Multinomial compound distribution.

class Distribution: A generic probability distribution base class.

class DoublesidedMaxwell: Double-sided Maxwell distribution.

class Empirical: Empirical distribution.

class ExpRelaxedOneHotCategorical: ExpRelaxedOneHotCategorical distribution with temperature and logits.

class Exponential: Exponential distribution.

class Gamma: Gamma distribution.

class GammaGamma: Gamma-Gamma distribution.

class GaussianProcess: Marginal distribution of a Gaussian process at finitely many points.

class GaussianProcessRegressionModel: Posterior predictive distribution in a conjugate GP regression model.

class GeneralizedNormal: The Generalized Normal distribution.

class GeneralizedPareto: The Generalized Pareto distribution.

class Geometric: Geometric distribution.

class Gumbel: The scalar Gumbel distribution with location loc and scale parameters.

class HalfCauchy: Half-Cauchy distribution.

class HalfNormal: The Half Normal distribution with scale scale.

class HalfStudentT: Half-Student's t distribution.

class HiddenMarkovModel: Hidden Markov model distribution.

class Horseshoe: Horseshoe distribution.

class Independent: Independent distribution from batch of distributions.

class InverseGamma: InverseGamma distribution.

class InverseGaussian: Inverse Gaussian distribution.

class JohnsonSU: Johnson's SU-distribution.

class JointDistribution: Joint distribution over one or more component distributions.

class JointDistributionCoroutine: Joint distribution parameterized by a distribution-making generator.

class JointDistributionCoroutineAutoBatched: Joint distribution parameterized by a distribution-making generator.

class JointDistributionNamed: Joint distribution parameterized by named distribution-making functions.

class JointDistributionNamedAutoBatched: Joint distribution parameterized by named distribution-making functions.

class JointDistributionSequential: Joint distribution parameterized by distribution-making functions.

class JointDistributionSequentialAutoBatched: Joint distribution parameterized by distribution-making functions.

class Kumaraswamy: Kumaraswamy distribution.

class LKJ: The LKJ distribution on correlation matrices.

class Laplace: The Laplace distribution with location loc and scale parameters.

class LinearGaussianStateSpaceModel: Observation distribution from a linear Gaussian state space model.

class LogLogistic: The log-logistic distribution.

class LogNormal: The log-normal distribution.

class Logistic: The Logistic distribution with location loc and scale parameters.

class LogitNormal: The logit-normal distribution.

class MixtureSameFamily: Mixture (same-family) distribution.

class Moyal: The Moyal distribution with location loc and scale parameters.

class Multinomial: Multinomial distribution.

class MultivariateNormalDiag: The multivariate normal distribution on R^k.

class MultivariateNormalDiagPlusLowRank: The multivariate normal distribution on R^k.

class MultivariateNormalFullCovariance: The multivariate normal distribution on R^k.

class MultivariateNormalLinearOperator: The multivariate normal distribution on R^k.

class MultivariateNormalTriL: The multivariate normal distribution on R^k.

class MultivariateStudentTLinearOperator: The [Multivariate Student's t-distribution](

class NegativeBinomial: NegativeBinomial distribution.

class Normal: The Normal distribution with location loc and scale parameters.

class OneHotCategorical: OneHotCategorical distribution.

class OrderedLogistic: Ordered logistic distribution.

class PERT: Modified PERT distribution for modeling expert predictions.

class Pareto: Pareto distribution.

class PlackettLuce: Plackett-Luce distribution over permutations.

class Poisson: Poisson distribution.

class PoissonLogNormalQuadratureCompound: PoissonLogNormalQuadratureCompound distribution.

class PowerSpherical: The Power Spherical distribution over unit vectors on S^{n-1}.

class ProbitBernoulli: ProbitBernoulli distribution.

class QuantizedDistribution: Distribution representing the quantization Y = ceiling(X).

class RegisterKL: Decorator to register a KL divergence implementation function.

class RelaxedBernoulli: RelaxedBernoulli distribution with temperature and logits parameters.

class RelaxedOneHotCategorical: RelaxedOneHotCategorical distribution with temperature and logits.

class ReparameterizationType: Instances of this class represent how sampling is reparameterized.

class Sample: Sample distribution via independent draws.

class SinhArcsinh: The SinhArcsinh transformation of a distribution on (-inf, inf).

class SphericalUniform: The uniform distribution over unit vectors on S^{n-1}.

class StudentT: Student's t-distribution.

class StudentTProcess: Marginal distribution of a Student's T process at finitely many points.

class TransformedDistribution: A Transformed Distribution.

class Triangular: Triangular distribution with low, high and peak parameters.

class TruncatedCauchy: The Truncated Cauchy distribution.

class TruncatedNormal: The Truncated Normal distribution.

class Uniform: Uniform distribution with low and high parameters.

class VariationalGaussianProcess: Posterior predictive of a variational Gaussian process.

class VectorDeterministic: Vector Deterministic distribution on R^k.

class VectorExponentialDiag: The vectorization of the Exponential distribution on R^k.

class VonMises: The von Mises distribution over angles.

class VonMisesFisher: The von Mises-Fisher distribution over unit vectors on S^{n-1}.

class Weibull: The Weibull distribution with 'concentration' and scale parameters.

class WishartLinearOperator: The matrix Wishart distribution on positive definite matrices.

class WishartTriL: The matrix Wishart distribution parameterized with Cholesky factors.

Functions

independent_joint_distribution_from_structure(...): Turns a (potentially nested) structure of dists into a single dist.

kl_divergence(...): Get the KL-divergence KL(distribution_a || distribution_b).

mvn_conjugate_linear_update(...): Computes a conjugate normal posterior for a Bayesian linear regression.

normal_conjugates_known_scale_posterior(...): Posterior Normal distribution with conjugate prior on the mean.

normal_conjugates_known_scale_predictive(...): Posterior predictive Normal distribution w. conjugate prior on the mean.

quadrature_scheme_lognormal_gauss_hermite(...): Use Gauss-Hermite quadrature to form quadrature on positive-reals.

quadrature_scheme_lognormal_quantiles(...): Use LogNormal quantiles to form quadrature on positive-reals.

FULLY_REPARAMETERIZED tfp.distributions.ReparameterizationType
NOT_REPARAMETERIZED tfp.distributions.ReparameterizationType