| LDARep {ldaPrototype} | R Documentation |
LDA Replications
Description
Performs multiple runs of Latent Dirichlet Allocation.
Usage
LDARep(docs, vocab, n = 100, seeds, id = "LDARep", pm.backend, ncpus, ...)
Arguments
docs |
[ |
vocab |
[ |
n |
[ |
seeds |
[ |
id |
[ |
pm.backend |
[ |
ncpus |
[ |
... |
additional arguments passed to |
Details
The function generates multiple LDA runs with the possibility of
using parallelization. The integration is done by the
parallelMap-package.
The function returns a LDARep object. You can receive results and
all other elements of this object with getter functions (see getJob).
Value
[named list] with entries id for computation's name,
jobs for the parameter settings and lda for the results itself.
See Also
Other replication functions:
LDAPrototype(),
as.LDARep(),
getJob(),
mergeRepTopics()
Other LDA functions:
LDABatch(),
LDA(),
getTopics()
Other workflow functions:
SCLOP(),
dendTopics(),
getPrototype(),
jaccardTopics(),
mergeTopics()
Examples
res = LDARep(docs = reuters_docs, vocab = reuters_vocab, n = 4, seeds = 1:4,
id = "myComputation", K = 7:10, alpha = 1, eta = 0.01, num.iterations = 20)
res
getJob(res)
getID(res)
getLDA(res, 4)
LDARep(docs = reuters_docs, vocab = reuters_vocab,
K = 10, num.iterations = 100, pm.backend = "socket")