MAP.CatDirichlet: MAP estimate of a "CatDirichlet" object
Description
Generate the MAP estimate of "pi" in following Categorical-Dirichlet structure:
pi|alpha ~ Dirichlet(alpha)
x|pi ~ Categorical(pi)
the model structure and prior parameters are stored in a "CatDirichlet" object.
MAP is pi_MAP = argmax p(pi|alpha,x).
Usage
# S3 method for CatDirichlet
MAP(obj, ...)
Arguments
obj
A "CatDirichlet" object.
...
Additional arguments to be passed to other inherited types.
Value
A numeric vector, the MAP estimate of "pi".
References
Murphy, Kevin P. Machine learning: a probabilistic perspective. MIT press, 2012.