Skip to content

A library for hidden semi-Markov models with explicit durations

License

Notifications You must be signed in to change notification settings

dpaysan/hsmmlearn

 
 

Repository files navigation

hsmmlearn

Linux build Status Windows build status

Coverage Status

hsmmlearn is a library for unsupervised learning of hidden semi-Markov models with explicit durations. It is a port of the hsmm package for R, and in fact wraps the same underlying C++ library.

hsmmlearn borrows its name and the design of its api from hmmlearn.

Install

hsmmlearn supports Python 2.7 and Python 3.4 and up. After cloning the repository, first install the requirements

pip install -r requirements.txt

Then run either

python setup.py develop

or

python setup.py install

to install the package from source.

To run the unit tests, do

python -m unittest discover -v .

Building the documentation

The documentation for hsmmlearn is a work in progress. To build the docs, first install the doc requirements, then run Sphinx:

cd docs
pip install -r doc_requirements.txt
make html

If everything goes well, the documentation should be in docs/_build/html.

Some of the documentation comes as jupyter notebooks, which can be found in the notebooks/ folder. Sphinx ingests these, and produces rst documents out of them. If you end up modifying the notebooks, run make notebooks in the documentation folder and check in the output.

License

hsmmlearn incorporates a significant amount of code from R's hsmm package, and is therefore released under the GPL, version 3.0.

About

A library for hidden semi-Markov models with explicit durations

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 73.5%
  • Python 20.3%
  • C++ 5.3%
  • C 0.3%
  • R 0.2%
  • Batchfile 0.2%
  • Other 0.2%