pymc.DensityDist#
- class pymc.DensityDist(name, *dist_params, logp=None, logcdf=None, random=None, moment=None, ndim_supp=0, ndims_params=None, dtype='floatX', **kwargs)[source]#
A distribution that can be used to wrap black-box log density functions.
Creates a Distribution and registers the supplied log density function to be used for inference. It is also possible to supply a random method in order to be able to sample from the prior or posterior predictive distributions.
Methods
DensityDist.__init__
(*args, **kwargs)DensityDist.dist
(*args, **kwargs)Creates a tensor variable corresponding to the cls distribution.
Attributes
rv_class
rv_op