Code for variational inference
See Blei, Jordan - Variational Methods for Dirichlet Processes
Bases: object
Implements a variational algorithm for inference in a dirichlet process mixture model of exponential family distributions.
Variational # mixtures truncation parameter.
# of data.
Dirichlet process parameter.
The data as sufficient statistics.
Exponential family.
The variational parameters for the V’s (array of shape (K,2)).
Conjugate prior parameter.
The pdf of variational density at z given T as an array over all z’s
@param T: sufficient statistic
The variational parameters for the Z’s (array of shape (N,2)).
The variational parameters for the eta’s (array of length K).
The pseudo count variational parameters for the eta’s (array of length K).