"TopicModelcontrol"
.
"TopicModelcontrol"
contains
seed
:"integer"
; used to set
the seed in the external code for VEM estimation and to call
set.seed
for Gibbs sampling. For Gibbs sampling it can also
be set to NA
(default) to avoid changing the seed of the
random number generator in the model fitting call.verbose
:"integer"
. If a
positive integer, then the progress is reported every
verbose
iterations. If 0 (default), no output is generated
during model fitting.save
:"integer"
. If a positive
integer the estimated model is saved all verbose
iterations. If 0 (default), no output is generated during model
fitting.prefix
:"character"
; path
indicating where to save the intermediate results.nstart
:"integer"
. Number of
repeated random starts.best
:"logical"
; if TRUE
only the model with the maximum (posterior) likelihood is returned,
by default equals TRUE
.keep
:"integer"
; if a positive
integer, the log-likelihood is saved every keep
iterations.estimate.beta
:"logical"
;
controls if beta, the term distribution of the topics, is fixed,
by default equals TRUE
."VEMcontrol"
contains
var
:"OPTcontrol"
; controls the
variational inference for a single document, by default
iter.max
equals 500 and tol
10^-6.em
:"OPTcontrol"
; controls the
variational EM algorithm, by default iter.max
equals 1000
and tol
10^-4.initialize
:"character"
; one of
"random"
, "seeded"
and "model"
, by default
equals "random"
."LDAcontrol"
extends class "TopicModelcontrol"
and
has the additional slots
alpha
:"numeric"
; initial
value for alpha."LDA_VEMcontrol"
extends classes
"LDAcontrol"
and "VEMcontrol"
and has the
additional slots
estimate.alpha
:"logical"
;
indicates if the parameter alpha is fixed a-priori or estimated, by
default equals TRUE
."LDA_Gibbscontrol"
extends classes
"LDAcontrol"
and has the additional slots
delta
:"numeric"
; initial value
for delta, by default equals 0.1.iter
:"integer"
; number of
Gibbs iterations, by default equals 2000.thin
:"integer"
; number of
omitted in-between Gibbs iterations, by default equals iter
.burnin
:"integer"
; number of
omitted Gibbs iterations at beginning, by default equals 0.burnin
:"integer"
; number of
omitted Gibbs iterations at beginning, by default equals 0.initialize
:"character"
;
one of "random"
, "beta"
and "z"
, by
default equals "random"
."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, by default iter.max
equals 500 and
tol
10^-5."OPTcontrol"
contains
iter.max
:"integer"
; maximum
number of iterations.tol
:"numeric"
; tolerance for
convergence check.