getTopics {ldaPrototype} | R Documentation |
Getter for LDA
Description
Returns the corresponding element of a LDA
object.
getEstimators
computes the estimators for phi
and theta
.
Usage
getTopics(x)
getAssignments(x)
getDocument_sums(x)
getDocument_expects(x)
getLog.likelihoods(x)
getParam(x)
getK(x)
getAlpha(x)
getEta(x)
getNum.iterations(x)
getEstimators(x)
Arguments
x |
[ |
Details
The estimators for phi
and theta
in
are calculated referring to Griffiths and Steyvers (2004) by
with is the vocabulary size,
is the number of modeled topics;
is the count of assignments of the
-th word to
the
-th topic. Analogously,
is the count of assignments
of the
-th text to the
-th topic.
is the total
number of assigned tokens in text
and
the total number of
assigned tokens to topic
.
References
Griffiths, Thomas L. and Mark Steyvers (2004). "Finding scientific topics". In: Proceedings of the National Academy of Sciences 101 (suppl 1), pp.5228–5235, doi: 10.1073/pnas.0307752101.
See Also
Other getter functions:
getJob()
,
getSCLOP()
,
getSimilarity()
Other LDA functions:
LDABatch()
,
LDARep()
,
LDA()