LDABatch | R Documentation |
Performs multiple runs of Latent Dirichlet Allocation on a batch system using
the batchtools-package
.
LDABatch( docs, vocab, n = 100, seeds, id = "LDABatch", load = FALSE, chunk.size = 1, resources, ... )
docs |
[ |
vocab |
[ |
n |
[ |
seeds |
[ |
id |
[ |
load |
[ |
chunk.size |
[ |
resources |
[ |
... |
additional arguments passed to |
The function generates multiple LDA runs with the possibility of
using a batch system. The integration is done by the
batchtools-package
. After all jobs of the
corresponding registry are terminated, the whole registry can be ported to
your local computer for further analysis.
The function returns a LDABatch
object. You can receive results and
all other elements of this object with getter functions (see getJob
).
[named list
] with entries id
for the registry's folder name,
jobs
for the submitted jobs' ids and its parameter settings and
reg
for the registry itself.
Other batch functions:
as.LDABatch()
,
getJob()
,
mergeBatchTopics()
Other LDA functions:
LDARep()
,
LDA()
,
getTopics()
## Not run: batch = LDABatch(docs = reuters_docs, vocab = reuters_vocab, n = 4, K = 15) batch getRegistry(batch) getJob(batch) getLDA(batch, 2) batch2 = LDABatch(docs = reuters_docs, vocab = reuters_vocab, K = 15, chunk.size = 20) batch2 head(getJob(batch2)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.