public static class LatentDirichletAllocationVectorGibbsSampler.Result extends AbstractCloneableSerializable
Modifier and Type | Field and Description |
---|---|
protected double[][] |
documentTopicProbabilities
The document-topic probabilities, which are often called the theta
model parameters.
|
protected double[][] |
topicTermProbabilities
The topic-term probabilities, which are the often called the phi model
parameters.
|
protected int |
totalOccurrences
The total number for term occurrences
|
Constructor and Description |
---|
Result(int topicCount,
int documentCount,
int termCount,
int totalOccurrences)
Creates a new
Result . |
Modifier and Type | Method and Description |
---|---|
int |
getDocumentCount()
Gets the number of documents in the dataset.
|
double[][] |
getDocumentTopicProbabilities()
Gets the topic-term probabilities, which are the often called the phi
model parameters.
|
int |
getTermCount()
Gets the number of terms in the dataset.
|
int |
getTopicCount()
Gets the number of topics (k) created by the topic model.
|
double[][] |
getTopicTermProbabilities()
Gets the document-topic probabilities, which are often called the
theta model parameters.
|
int |
getTotalOccurrences()
Gets the total number of term occurrences
|
void |
setDocumentTopicProbabilities(double[][] documentTopicProbabilities)
Sets the topic-term probabilities, which are the often called the phi
model parameters.
|
void |
setTopicTermProbabilities(double[][] topicTermProbabilities)
Sets the document-topic probabilities, which are often called the
theta model parameters.
|
clone
protected double[][] topicTermProbabilities
protected double[][] documentTopicProbabilities
protected int totalOccurrences
public Result(int topicCount, int documentCount, int termCount, int totalOccurrences)
Result
.topicCount
- The number of topics.documentCount
- The number of documents.termCount
- The number of terms.totalOccurrences
- The number of term occurrences.public int getTopicCount()
public int getDocumentCount()
public int getTermCount()
public int getTotalOccurrences()
public double[][] getDocumentTopicProbabilities()
public void setDocumentTopicProbabilities(double[][] documentTopicProbabilities)
documentTopicProbabilities
- The topic-term probabilities.public double[][] getTopicTermProbabilities()
public void setTopicTermProbabilities(double[][] topicTermProbabilities)
topicTermProbabilities
- The document-topic probabilities.