Description Usage Arguments Value References See Also Examples
View source: R/Categorical_Inference.r
Generate the MAP estimate of "pi" in following Categorical-Dirichlet structure:
pi|alpha \sim Dir(alpha)
x|pi \sim Categorical(pi)
Where Dir() is the Dirichlet distribution, Categorical() is the Categorical distribution. See ?dDir
and dCategorical
for the definitions of these distribution.
The model structure and prior parameters are stored in a "CatDirichlet" object.
MAP is pi_MAP = argmax p(pi|alpha,x).
1 2 |
obj |
A "CatDirichlet" object. |
... |
Additional arguments to be passed to other inherited types. |
A numeric vector, the MAP estimate of "pi".
Murphy, Kevin P. Machine learning: a probabilistic perspective. MIT press, 2012.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.