Package cc.mallet.topics
Class DMRCallable
- java.lang.Object
-
- cc.mallet.topics.WorkerCallable
-
- cc.mallet.topics.DMRCallable
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Integer>
public class DMRCallable extends WorkerCallable implements java.util.concurrent.Callable<java.lang.Integer>
A parallel Dirichlet-multinomial regression topic model runnable task.- Author:
- David Mimno
-
-
Field Summary
-
Fields inherited from class cc.mallet.topics.WorkerCallable
alpha, alphaSum, beta, betaSum, cachedCoefficients, DEFAULT_BETA, docLengthCounts, numTopics, numTypes, random, smoothingOnlyMass, tokensPerTopic, topicBits, topicDocCounts, topicMask, typeTopicCounts
-
-
Constructor Summary
Constructors Constructor Description DMRCallable(int numTopics, DMRTopicModel model, double beta, Randoms random, java.util.ArrayList<TopicAssignment> data, int[][] typeTopicCounts, int[] tokensPerTopic, int startDoc, int numDocs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
call()
-
Methods inherited from class cc.mallet.topics.WorkerCallable
buildLocalTypeTopicCounts, collectAlphaStatistics, getDocLengthCounts, getTokensPerTopic, getTopicDocCounts, getTypeTopicCounts, initializeAlphaStatistics, makeOnlyThread, resetBeta, sampleTopicsForOneDoc
-
-
-
-
Constructor Detail
-
DMRCallable
public DMRCallable(int numTopics, DMRTopicModel model, double beta, Randoms random, java.util.ArrayList<TopicAssignment> data, int[][] typeTopicCounts, int[] tokensPerTopic, int startDoc, int numDocs)
-
-
Method Detail
-
call
public java.lang.Integer call()
- Specified by:
call
in interfacejava.util.concurrent.Callable<java.lang.Integer>
- Overrides:
call
in classWorkerCallable
-
-