org.knowceans.corpus.analysis
Class LdaPerplexity

java.lang.Object
  extended by 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

Field Summary
private  double[][] phi
           
private  TermCorpus tc
           
private  double[][] theta
           
 
Constructor Summary
LdaPerplexity()
           
 
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
 

Field Detail

phi

private double[][] phi

theta

private double[][] theta

tc

private TermCorpus tc
Constructor Detail

LdaPerplexity

public LdaPerplexity()
Method Detail

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: