cc.mallet.topics
Class TopicModelDiagnostics.TopicScores

java.lang.Object
  extended by cc.mallet.topics.TopicModelDiagnostics.TopicScores
Enclosing class:
TopicModelDiagnostics

public class TopicModelDiagnostics.TopicScores
extends java.lang.Object


Field Summary
 java.lang.String name
           
 double[] scores
           
 double[][] topicWordScores
           
 boolean wordScoresDefined
          Some diagnostics have meaningful values for each word, others do not
 
Constructor Summary
TopicModelDiagnostics.TopicScores(java.lang.String name, int numTopics, int numWords)
           
 
Method Summary
 void addToTopicScore(int topic, double score)
           
 void setTopicScore(int topic, double score)
           
 void setTopicWordScore(int topic, int wordPosition, double score)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

scores

public double[] scores

topicWordScores

public double[][] topicWordScores

wordScoresDefined

public boolean wordScoresDefined
Some diagnostics have meaningful values for each word, others do not

Constructor Detail

TopicModelDiagnostics.TopicScores

public TopicModelDiagnostics.TopicScores(java.lang.String name,
                                         int numTopics,
                                         int numWords)
Method Detail

setTopicScore

public void setTopicScore(int topic,
                          double score)

addToTopicScore

public void addToTopicScore(int topic,
                            double score)

setTopicWordScore

public void setTopicWordScore(int topic,
                              int wordPosition,
                              double score)