TopicModelcontrol-class {topicmodels} | R Documentation |
Classes to control the estimation of topic models which are inheriting
from the virtual base class "TopicModelcontrol"
.
Objects can be created from named lists.
Class "TopicModelcontrol"
contains
verbose
:"integer"
; the
estimated model is saved all verbose
iterations.prefix
:"character"
; path
indicating where to save the intermediate results.
Class "VEMcontrol"
contains
var
:"OPTcontrol"
; controls the
variational inference for a single document.em
:"OPTcontrol"
; controls the
variational EM alogorithm.initialize
:"character"
; one of
"random"
, "seeded"
and "model"
.
Class "LDAcontrol"
extends class "TopicModelcontrol"
and has the additional
slots
alpha
:"numeric"
; initial
value for alpha.
Class "LDA_VEMcontrol"
extends classes
"LDAcontrol"
and "VEMcontrol"
and has the
additional slots
estimate.alpha
:"logical"
; by
default equals TRUE
and indicates if the parameter alpha is
fixed a-priori or estimated.
Class "LDA_Gibbscontrol"
extends classes
"LDAcontrol"
and has the additional slots
delta
:"numeric"
; initial value
for delta.iter
:"integer"
; number of
Gibbs iterations.
Class "CTM_VEMcontrol"
extends classes
"TopicModelcontrol"
and "VEMcontrol"
and
has the additional slots
cg
:"OPTcontrol"
; controls the
conjugate gradient iterations in fitting the variational mean and
variance per document.shrinkage.covariance
:"logical"
;
indicates how the variance-covariance matrix is estimated.
Class "OPTcontrol"
contains
iter.max
:"integer"
; maximum
number of iterations.tol
:"numeric"
; tolerance for
convergence check.Bettina Gruen