The Wayback Machine - https://web.archive.org/web/20200525131242/https://github.com/topics/latent-dirichlet-allocation
Skip to content
#

latent-dirichlet-allocation

Here are 195 public repositories matching this topic...

tomotopy
saralafia
saralafia commented Apr 22, 2020

Is there a way to get the topic mixture of each document back out from a hierarchical model? I am training a HLDAModel:

h_mdl = tp.HLDAModel(depth=4,corpus=corpus,seed=1)
    
for i in range(0, 100, 10): #Train the model using Gibbs-sampling
    h_mdl.train(10)
    print('Iteration: {}\tLog-likelihood: {}'.format(i, h_mdl.ll_per_word))

I am using the Document class to access insta

Improve this page

Add a description, image, and links to the latent-dirichlet-allocation topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the latent-dirichlet-allocation topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.