as.LDARep {ldaPrototype} | R Documentation |
LDARep Constructor
Description
Constructs a LDARep
object for given elements lda
,
job
and id
.
Usage
as.LDARep(...)
## Default S3 method:
as.LDARep(lda, job, id, ...)
## S3 method for class 'LDARep'
as.LDARep(x, ...)
is.LDARep(obj, verbose = FALSE)
Arguments
... |
additional arguments |
lda |
[ |
job |
[ |
id |
[ |
x |
|
obj |
[ |
verbose |
[ |
Details
Given a list of LDA
objects the function returns
a LDARep
object, which can be handled using the getter functions
at getJob
.
Value
[named list
] with entries id
for computation's name,
jobs
for the parameter settings and lda
for the results themselves.
See Also
Other constructor functions:
LDA()
,
as.LDABatch()
Other replication functions:
LDAPrototype()
,
LDARep()
,
getJob()
,
mergeRepTopics()
Examples
res = LDARep(docs = reuters_docs, vocab = reuters_vocab, n = 4, K = 7, num.iterations = 20)
lda = getLDA(res)
res2 = as.LDARep(lda, id = "newName")
res2
getJob(res2)
getJob(res)
## Not run:
batch = LDABatch(docs = reuters_docs, vocab = reuters_vocab, n = 4, id = "TEMP", K = 30)
res3 = as.LDARep(batch)
res3
getJob(res3)
## End(Not run)