cc.mallet.topics
Class LDA
- java.lang.Object
-
- cc.mallet.topics.LDA
-
- All Implemented Interfaces:
- java.io.Serializable
Deprecated.Use ParallelTopicModel instead.
public class LDA extends java.lang.Object implements java.io.SerializableLatent Dirichlet Allocation.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LDA(int numberOfTopics)Deprecated.LDA(int numberOfTopics, double alphaSum, double beta)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description voidaddDocuments(InstanceList additionalDocuments, int numIterations, int showTopicsInterval, int outputModelInterval, java.lang.String outputModelFilename, Randoms r)Deprecated.voidestimate(InstanceList documents, int numIterations, int showTopicsInterval, int outputModelInterval, java.lang.String outputModelFilename, Randoms r)Deprecated.voidestimate(int docIndexStart, int docIndexLength, int numIterations, int showTopicsInterval, int outputModelInterval, java.lang.String outputModelFilename, Randoms r)Deprecated.int[][]getDocTopicCounts()Deprecated.InstanceListgetInstanceList()Deprecated.int[]getTokensPerTopic()Deprecated.int[][]getTypeTopicCounts()Deprecated.static voidmain(java.lang.String[] args)Deprecated.voidprintDocumentTopics(java.io.File f)Deprecated.voidprintDocumentTopics(java.io.PrintWriter pw)Deprecated.voidprintDocumentTopics(java.io.PrintWriter pw, double threshold, int max)Deprecated.voidprintState(java.io.File f)Deprecated.voidprintState(java.io.PrintWriter pw)Deprecated.voidprintTopWords(int numWords, boolean useNewLines)Deprecated.voidsampleTopicsForAllDocs(Randoms r)Deprecated.voidsampleTopicsForDocs(int start, int length, Randoms r)Deprecated.voidwrite(java.io.File f)Deprecated.
-
-
-
Constructor Detail
-
LDA
public LDA(int numberOfTopics)
Deprecated.
-
LDA
public LDA(int numberOfTopics, double alphaSum, double beta)Deprecated.
-
-
Method Detail
-
estimate
public void estimate(InstanceList documents, int numIterations, int showTopicsInterval, int outputModelInterval, java.lang.String outputModelFilename, Randoms r)
Deprecated.
-
addDocuments
public void addDocuments(InstanceList additionalDocuments, int numIterations, int showTopicsInterval, int outputModelInterval, java.lang.String outputModelFilename, Randoms r)
Deprecated.
-
estimate
public void estimate(int docIndexStart, int docIndexLength, int numIterations, int showTopicsInterval, int outputModelInterval, java.lang.String outputModelFilename, Randoms r)Deprecated.
-
sampleTopicsForAllDocs
public void sampleTopicsForAllDocs(Randoms r)
Deprecated.
-
sampleTopicsForDocs
public void sampleTopicsForDocs(int start, int length, Randoms r)Deprecated.
-
getDocTopicCounts
public int[][] getDocTopicCounts()
Deprecated.
-
getTypeTopicCounts
public int[][] getTypeTopicCounts()
Deprecated.
-
getTokensPerTopic
public int[] getTokensPerTopic()
Deprecated.
-
printTopWords
public void printTopWords(int numWords, boolean useNewLines)Deprecated.
-
printDocumentTopics
public void printDocumentTopics(java.io.File f) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
printDocumentTopics
public void printDocumentTopics(java.io.PrintWriter pw)
Deprecated.
-
printDocumentTopics
public void printDocumentTopics(java.io.PrintWriter pw, double threshold, int max)Deprecated.
-
printState
public void printState(java.io.File f) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
printState
public void printState(java.io.PrintWriter pw)
Deprecated.
-
write
public void write(java.io.File f)
Deprecated.
-
getInstanceList
public InstanceList getInstanceList()
Deprecated.
-
main
public static void main(java.lang.String[] args) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG