Description Usage Arguments Details Value See Also Examples
Constructor for LDA objects used in this package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
x |
[ |
param |
[ |
assignments |
Individual element for LDA object. |
topics |
Individual element for LDA object. |
document_sums |
Individual element for LDA object. |
document_expects |
Individual element for LDA object. |
log.likelihoods |
Individual element for LDA object. |
obj |
[ |
verbose |
[ |
The functions LDA
and as.LDA
do exactly the same. If you call
LDA
on an object x
which already is of the structure of an
LDA
object (in particular a LDA
object itself),
the additional arguments param, assignments, ...
may be used to override the specific elements.
[named list
] LDA object.
Other constructor functions:
as.LDABatch()
,
as.LDARep()
Other LDA functions:
LDABatch()
,
LDARep()
,
getTopics()
1 2 3 4 5 6 7 8 9 10 11 | res = LDARep(docs = reuters_docs, vocab = reuters_vocab, n = 1, K = 10)
lda = getLDA(res)
LDA(lda)
# does not change anything
LDA(lda, assignments = NULL)
# creates a new LDA object without the assignments element
LDA(param = getParam(lda), topics = getTopics(lda))
# creates a new LDA object with elements param and topics
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.