Skip to main content

Hidden Markov Models in Python with scikit-learn like API

Project description

hmmlearn

hmmlearn is a set of algorithms for unsupervised learning and inference of Hidden Markov Models. For supervised learning learning of HMMs and similar models see seqlearn.

Getting the latest code

To get the latest code using git, simply type:

$ git clone https://github.com/hmmlearn/hmmlearn.git

Installing

Make sure you have all the dependencies:

$ pip install numpy scipy scikit-learn

and then install hmmlearn by running:

$ python setup.py install

in the source code directory.

Running the test suite

To run the test suite, you need pytest. Run the test suite using:

$ python setup.py build_ext --inplace
$ py.test --doctest-modules hmmlearn

from the root of the project.

Building the docs

To build the docs you need to have the following packages installed:

$ pip install Pillow matplotlib Sphinx sphinx-gallery sphinx_rtd_theme numpydoc

Run the command:

$ cd doc
$ make html

The docs are built in the _build/html directory.

Making a source tarball

To create a source tarball, eg for packaging or distributing, run the following command:

$ python setup.py sdist

The tarball will be created in the dist directory.

Making a release and uploading it to PyPI

This command is only run by project manager, to make a release, and upload in to PyPI:

$ python setup.py sdist bdist_egg register upload

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hmmlearn-0.2.0.tar.gz (107.9 kB view hashes)

Uploaded Source

Built Distributions

hmmlearn-0.2.0-cp35-cp35m-win_amd64.whl (81.8 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

hmmlearn-0.2.0-cp35-cp35m-win32.whl (71.5 kB view hashes)

Uploaded CPython 3.5m Windows x86

hmmlearn-0.2.0-cp35-cp35m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (185.1 kB view hashes)

Uploaded CPython 3.5m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

hmmlearn-0.2.0-cp34-cp34m-win_amd64.whl (84.0 kB view hashes)

Uploaded CPython 3.4m Windows x86-64

hmmlearn-0.2.0-cp34-cp34m-win32.whl (75.6 kB view hashes)

Uploaded CPython 3.4m Windows x86

hmmlearn-0.2.0-cp34-cp34m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (184.9 kB view hashes)

Uploaded CPython 3.4m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

hmmlearn-0.2.0-cp33-cp33m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (184.4 kB view hashes)

Uploaded CPython 3.3m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

hmmlearn-0.2.0-cp27-cp27m-win_amd64.whl (85.5 kB view hashes)

Uploaded CPython 2.7m Windows x86-64

hmmlearn-0.2.0-cp27-cp27m-win32.whl (74.6 kB view hashes)

Uploaded CPython 2.7m Windows x86

hmmlearn-0.2.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (183.9 kB view hashes)

Uploaded CPython 2.7m macOS 10.10+ intel macOS 10.10+ x86-64 macOS 10.6+ intel macOS 10.9+ intel macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page