Skip to content

mou7/mix-multi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Expectation-Maximization (EM) for mixture of Multinomials

This Python code implements the EM algorithm for the mixture of Multinomials. The generative process that explains the mixture of Multinomials: For each document, we sample a topic from a document-specific multinomial. Given this topic, we sample a word from the Multinomial distribution that represents this topic.

Running the code

To run the code with a synthetic dataset

python -i mix_multi.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages