org.knowceans.corpus.analysis
Class LdaPerplexity
java.lang.Object
org.knowceans.corpus.analysis.LdaPerplexity
public class LdaPerplexity
- extends java.lang.Object
LdaPerplexity implements the perplextity metric for unlabeled test data sets
TODO: thorough check after change of field tc from class TermCorpusOld.
- Author:
- heinrich
Method Summary |
private double |
loglik(int doc)
return the likelihood of a document from its index |
static void |
main(java.lang.String[] args)
|
double |
run(java.lang.String corpusfile,
java.lang.String model,
boolean zip)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
phi
private double[][] phi
theta
private double[][] theta
tc
private TermCorpus tc
LdaPerplexity
public LdaPerplexity()
main
public static void main(java.lang.String[] args)
run
public double run(java.lang.String corpusfile,
java.lang.String model,
boolean zip)
loglik
private double loglik(int doc)
- return the likelihood of a document from its index
- Parameters:
name
-
- Returns: