cc.mallet.topics
Class HierarchicalPAM
java.lang.Object
cc.mallet.topics.HierarchicalPAM
public class HierarchicalPAM
- extends java.lang.Object
Hierarchical PAM, where each node in the DAG has a distribution over all topics on the
next level and one additional "node-specific" topic.
- Author:
- David Mimno
Constructor Summary |
HierarchicalPAM(int superTopics,
int subTopics,
double superTopicBalance,
double subTopicBalance)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static java.util.logging.Logger logger
NUM_LEVELS
public static final int NUM_LEVELS
- See Also:
- Constant Field Values
ROOT_TOPIC
public static final int ROOT_TOPIC
- See Also:
- Constant Field Values
SUPER_TOPIC
public static final int SUPER_TOPIC
- See Also:
- Constant Field Values
SUB_TOPIC
public static final int SUB_TOPIC
- See Also:
- Constant Field Values
HierarchicalPAM
public HierarchicalPAM(int superTopics,
int subTopics,
double superTopicBalance,
double subTopicBalance)
estimate
public void estimate(InstanceList documents,
InstanceList testing,
int numIterations,
int showTopicsInterval,
int outputModelInterval,
int optimizeInterval,
java.lang.String outputModelFilename,
Randoms r)
printTopWords
public java.lang.String printTopWords(int numWords,
boolean useNewLines)
printState
public void printState(java.io.File f)
throws java.io.IOException
- Throws:
java.io.IOException
printState
public void printState(java.io.PrintWriter out)
modelLogLikelihood
public double modelLogLikelihood()
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException