public class LDAVariationlState extends Object
Modifier and Type | Field and Description |
---|---|
double[] |
digamma
Holds the first derivative of the gamma
|
double |
likelihood
The liklihood of the current topic sufficient statistics and variational parameters
|
double |
oldLikelihood
The old liklihood
|
double[] |
oldphi
Useful for calculating the sumphi for a given document
|
double[][] |
phi
the n'th unique word in a document's probability for each topic
|
LDAModel |
state
The current LDAModel (i.e.
|
double[] |
varGamma
the dirichlet parameter for the topic multinomials
|
Constructor and Description |
---|
LDAVariationlState(LDAModel state)
The variational state holds phi and gamma states as well as
information for convergence of the E step.
|
Modifier and Type | Method and Description |
---|---|
void |
prepare(Document doc)
initialises the phi and sets everything to 0
|
public double[][] phi
public double[] oldphi
public double[] varGamma
public double likelihood
public double oldLikelihood
public double[] digamma
public LDAVariationlState(LDAModel state)
state
-