pymc.Categorical#
- class pymc.Categorical(name, *args, **kwargs)[source]#
Categorical log-likelihood.
The most general discrete distribution. The pmf of this distribution is
\[f(x \mid p) = p_x\](
Source code
,png
,hires.png
,pdf
)Support
\(x \in \{0, 1, \ldots, |p|-1\}\)
- Parameters
Methods
Categorical.__init__
(*args, **kwargs)Categorical.dist
([p, logit_p])Creates a tensor variable corresponding to the cls distribution.
Categorical.moment
(size, p)Attributes
rv_op