TopicModelcontrol-class {topicmodels}R Documentation

Different classes for controlling the estimation of topic models

Description

Classes to control the estimation of topic models which are inheriting from the virtual base class "TopicModelcontrol".

Objects from the Class

Objects can be created from named lists.

Slots

Class "TopicModelcontrol" contains

verbose:
Object of class "integer"; the estimated model is saved all verbose iterations.
prefix:
Object of class "character"; path indicating where to save the intermediate results.

Class "VEMcontrol" contains

var:
Object of class "OPTcontrol"; controls the variational inference for a single document.
em:
Object of class "OPTcontrol"; controls the variational EM alogorithm.
initialize:
Object of class "character"; one of "random", "seeded" and "model".

Class "LDAcontrol" extends class "TopicModelcontrol" and has the additional slots

alpha:
Object of class "numeric"; initial value for alpha.

Class "LDA_VEMcontrol" extends classes "LDAcontrol" and "VEMcontrol" and has the additional slots

estimate.alpha:
Object of class "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:
Object of class "numeric"; initial value for delta.
iter:
Object of class "integer"; number of Gibbs iterations.

Class "CTM_VEMcontrol" extends classes "TopicModelcontrol" and "VEMcontrol" and has the additional slots

cg:
Object of class "OPTcontrol"; controls the conjugate gradient iterations in fitting the variational mean and variance per document.
shrinkage.covariance:
Object of class "logical"; indicates how the variance-covariance matrix is estimated.

Class "OPTcontrol" contains

iter.max:
Object of class "integer"; maximum number of iterations.
tol:
Object of class "numeric"; tolerance for convergence check.

Author(s)

Bettina Gruen


[Package topicmodels version 0.0-3 Index]