Skip to content

An optimized cython version of LDA model implemented in scikit-learn

License

Notifications You must be signed in to change notification settings

dgiofre/scikit-learn-LDAfast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scikit-learn-fastLDA

An optimized cython version of LDA model implemented in scikit-learn

Installation

I just show the procedure for a Mac using pyenv (feel free to use your python library and environment manager):

brew install readline xz
brew install pyenv pyenv-virtualenv

pyenv install 3.7.9
pyenv virtualenv 3.7.9 fastLDA_3.7

cd {YOUR_DIR_PATH}/scikit-learn-LDAfast
pyenv local fastLDA_3.7

Now open a new terminal and navigate in the code directory. You should have "fastLDA" environment active. If so please launch the following commands

pip install -r requirements.txt
python -m ipykernel install --user --name fastLDA_3.7 --display-name "fast LDA  3.7"

Now it is time to compile your Cythonic code:

cd LDAfast/clib
python setup.py build_ext --inplace

Well done, you are ready to use the fastLDA method!

API

See the example notebook on how you can call the fastLDA method and the scikit-learn documentation for the use, args and the parameters definition.

Good decomposition!

About

An optimized cython version of LDA model implemented in scikit-learn

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published