LDABatch {ldaPrototype} | R Documentation |
LDA Replications on a Batch System
Description
Performs multiple runs of Latent Dirichlet Allocation on a batch system using
the batchtools-package
.
Usage
LDABatch(
docs,
vocab,
n = 100,
seeds,
id = "LDABatch",
load = FALSE,
chunk.size = 1,
resources,
...
)
Arguments
docs |
[ |
vocab |
[ |
n |
[ |
seeds |
[ |
id |
[ |
load |
[ |
chunk.size |
[ |
resources |
[ |
... |
additional arguments passed to |
Details
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
).
Value
[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.
See Also
Other batch functions:
as.LDABatch()
,
getJob()
,
mergeBatchTopics()
Other LDA functions:
LDARep()
,
LDA()
,
getTopics()
Examples
## 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)