Home | Trees | Indices | Help |
|
---|
|
object --+ | Distribution --+ | LDA --+ | CumulativeLDA
An implementation of SDA for LDA (see Broderick et al., 2013).
Example:
>>> model = CumulativeLDA(num_words=7000, num_topics=100, alpha=.1, eta=.3) >>> >>> for documents in load_documents('data_train.mat', 1000): >>> model.update_parameters(documents, max_epochs=100)
In contrast to OnlineLDA, each document should be processed only once by update_parameters().
Instance Methods | |||
|
|||
float
|
|
||
list
|
|
||
|
|||
tuple
|
|
||
Inherited from |
Properties | |
alpha Controls Dirichlet prior over topic weights, $\theta_k$. (Inherited from trlda.models.LDA) |
|
eta Controls Dirichlet prior over topics, $\beta_{ki}$. (Inherited from trlda.models.LDA) |
|
lambdas Parameters governing beliefs over topics, $\beta_{ki}$. (Inherited from trlda.models.LDA) |
|
num_topics Number of topics. (Inherited from trlda.models.LDA) |
|
num_words Number of words. (Inherited from trlda.models.LDA) |
|
Inherited from |
Method Details |
Updates beliefs over parameters.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun May 24 18:19:15 2015 | http://epydoc.sourceforge.net |