.. toctree:: :glob: :maxdepth: 2 :caption: Contents:
Most distributions in Pyro are thin wrappers around PyTorch distributions. For details on the PyTorch distribution interface, see :class:`torch.distributions.distribution.Distribution`. For differences between the Pyro and PyTorch interfaces, see :class:`~pyro.distributions.torch_distribution.TorchDistributionMixin`.
.. automodule:: pyro.distributions.torch
.. autoclass:: pyro.distributions.Distribution :members: :undoc-members: :special-members: __call__ :show-inheritance: :member-order: bysource
.. autoclass:: pyro.distributions.torch_distribution.TorchDistributionMixin :members: :undoc-members: :special-members: __call__ :show-inheritance: :member-order: bysource
.. autoclass:: pyro.distributions.TorchDistribution :members: :undoc-members: :special-members: __call__ :show-inheritance: :member-order: bysource
.. autoclass:: pyro.distributions.AffineBeta :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.AsymmetricLaplace :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.AVFMultivariateNormal :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.BetaBinomial :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.CoalescentTimes :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.CoalescentTimesWithRate :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ConditionalDistribution :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ConditionalTransformedDistribution :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.Delta :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.DirichletMultinomial :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.DiscreteHMM :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.Empirical :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ExtendedBetaBinomial :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ExtendedBinomial :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.FoldedDistribution :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.GammaGaussianHMM :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.GammaPoisson :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.GaussianHMM :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.GaussianMRF :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.GaussianScaleMixture :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.GroupedNormalNormal :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.improper_uniform.ImproperUniform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.IndependentHMM :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.InverseGamma :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.LinearHMM :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.LKJ :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.LKJCorrCholesky :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.LogNormalNegativeBinomial :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.Logistic :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.MaskedDistribution :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.MaskedMixture :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.MixtureOfDiagNormals :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.MixtureOfDiagNormalsSharedCovariance :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.MultivariateStudentT :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.NanMaskedNormal :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.NanMaskedMultivariateNormal :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.OMTMultivariateNormal :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.OneOneMatching :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.OneTwoMatching :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.OrderedLogistic :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ProjectedNormal :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.RelaxedBernoulliStraightThrough :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.RelaxedOneHotCategoricalStraightThrough :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.Rejector :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.SineBivariateVonMises :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.SineSkewed :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.SkewLogistic :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.SoftAsymmetricLaplace :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.SoftLaplace :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.SpanningTree :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.Stable :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.StableWithLogProb :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.TruncatedPolyaGamma :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.Unit :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.VonMises3D :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ZeroInflatedDistribution :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ZeroInflatedNegativeBinomial :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ZeroInflatedPoisson :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ConditionalTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.CholeskyTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.CorrMatrixCholeskyTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.DiscreteCosineTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ELUTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.HaarTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.LeakyReLUTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.LowerCholeskyAffine :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.Normalize :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.OrderedTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.Permute :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.PositivePowerTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.SimplexToOrderedTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.SoftplusLowerCholeskyTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.SoftplusTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.UnitLowerCholeskyTransform :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.AffineAutoregressive :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.AffineCoupling :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.BatchNorm :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.BlockAutoregressive :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalAffineAutoregressive :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalAffineCoupling :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalGeneralizedChannelPermute :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalHouseholder :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalMatrixExponential :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalNeuralAutoregressive :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalPlanar :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalRadial :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalSpline :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.ConditionalSplineAutoregressive :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ConditionalTransformModule :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.GeneralizedChannelPermute :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.Householder :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.MatrixExponential :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.NeuralAutoregressive :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.Planar :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.Polynomial :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.Radial :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.Spline :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.SplineAutoregressive :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.SplineCoupling :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.transforms.Sylvester :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.TransformModule :members: :undoc-members: :show-inheritance:
.. autoclass:: pyro.distributions.ComposeTransformModule :members: :undoc-members: :show-inheritance:
Each :class:`~torch.distributions.transforms.Transform` and :class:`~pyro.distributions.TransformModule` includes a corresponding helper function in lower case that inputs, at minimum, the input dimensions of the transform, and possibly additional arguments to customize the transform in an intuitive way. The purpose of these helper functions is to hide from the user whether or not the transform requires the construction of a hypernet, and if so, the input and output dimensions of that hypernet.
.. autofunction:: pyro.distributions.transforms.iterated
.. autofunction:: pyro.distributions.transforms.affine_autoregressive
.. autofunction:: pyro.distributions.transforms.affine_coupling
.. autofunction:: pyro.distributions.transforms.batchnorm
.. autofunction:: pyro.distributions.transforms.block_autoregressive
.. autofunction:: pyro.distributions.transforms.conditional_affine_autoregressive
.. autofunction:: pyro.distributions.transforms.conditional_affine_coupling
.. autofunction:: pyro.distributions.transforms.conditional_generalized_channel_permute
.. autofunction:: pyro.distributions.transforms.conditional_householder
.. autofunction:: pyro.distributions.transforms.conditional_matrix_exponential
.. autofunction:: pyro.distributions.transforms.conditional_neural_autoregressive
.. autofunction:: pyro.distributions.transforms.conditional_planar
.. autofunction:: pyro.distributions.transforms.conditional_radial
.. autofunction:: pyro.distributions.transforms.conditional_spline
.. autofunction:: pyro.distributions.transforms.conditional_spline_autoregressive
.. autofunction:: pyro.distributions.transforms.elu
.. autofunction:: pyro.distributions.transforms.generalized_channel_permute
.. autofunction:: pyro.distributions.transforms.householder
.. autofunction:: pyro.distributions.transforms.leaky_relu
.. autofunction:: pyro.distributions.transforms.matrix_exponential
.. autofunction:: pyro.distributions.transforms.neural_autoregressive
.. autofunction:: pyro.distributions.transforms.permute
.. autofunction:: pyro.distributions.transforms.planar
.. autofunction:: pyro.distributions.transforms.polynomial
.. autofunction:: pyro.distributions.transforms.radial
.. autofunction:: pyro.distributions.transforms.spline
.. autofunction:: pyro.distributions.transforms.spline_autoregressive
.. autofunction:: pyro.distributions.transforms.spline_coupling
.. autofunction:: pyro.distributions.transforms.sylvester
.. automodule:: pyro.distributions.constraints