Class TopicModelDiagnostics.TopicScores

  • Enclosing class:
    TopicModelDiagnostics

    public class TopicModelDiagnostics.TopicScores
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String name  
      double[] scores  
      double[][] topicWordScores  
      boolean wordScoresDefined
      Some diagnostics have meaningful values for each word, others do not
    • Constructor Summary

      Constructors 
      Constructor Description
      TopicScores​(java.lang.String name, int numTopics, int numWords)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

      • TopicScores

        public 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)