probml / pmtk3

Probabilistic Modeling Toolkit for Matlab/Octave.
MIT License
1.55k stars 797 forks source link

Maximum entropy model for strings via PCD #110

Closed patrickmineault closed 8 years ago

patrickmineault commented 8 years ago

Added ipython notebook showing how to fit a maximum entropy model for fixed length strings via persistent contrastive divergence. Shows how to create a Gibbs sampler over strings, running persistent contrastive divergence to fit a MaxEnt model, and running MaxEnt on a set of words found in the real world (the wikipedia article "Machine Learning").