On Unix (Linux, OS X)
- A compiler with C++11 support
- CMake >= 2.8.12
On Windows
- Visual Studio 2015 (required for all Python versions, see notes below)
- CMake >= 3.1
-
Fork/clone this repo.
-
In fastlda/ please run
git submodule init
git submodule update
pip install --upgrade . # recommend doing this in a virtualenv
This should install all the dependencies needed.
- Run
python src/python/lda_example.py
for an end-to-end LDA run (from training to inference using NIPS dataset from https://archive.ics.uci.edu/ml/datasets/bag+of+words).
- Pypi version soon to come!
A Python class has been exposed with all the relevant training/inference functions.
For an example, see: this simple example
MIT
This code is written in C++ with python modules exposed using pybind11.