Skip to main content

Hidden Markov Models in Python with scikit-learn like API

Project description

hmmlearn

hmmlearn is a set of algorithm for learning and inference of Hiden Markov Models.

Historically, this code was present in scikit-learn, but unmaintained. It has been orphaned and separated as a different package.

The learning algorithms in this package are unsupervised. For supervised learning of HMMs and similar models, see seqlearn.

Getting the latest code

To get the latest code using git, simply type:

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

Installing

Make sure you have all the dependencies:

$ pip install scikit-learn Cython

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 nosetests and the coverage modules. Run the test suite using:

$ python setup.py build_ext --inplace && nosetests

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 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.1.1.tar.gz (14.5 kB view details)

Uploaded Source

File details

Details for the file hmmlearn-0.1.1.tar.gz.

File metadata

  • Download URL: hmmlearn-0.1.1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hmmlearn-0.1.1.tar.gz
Algorithm Hash digest
SHA256 81cb27c9bc75eabbfd5189a68d8ef21285ea520ecbf6ced01866f6a4e8044ae5
MD5 6db6ea730c849e2bc3b3f322e35ee65c
BLAKE2b-256 ee3b55fe13ba54afedb48fb286e554022d1c2ee590540cacd70e50e6fd5a729c

See more details on using hashes here.

Supported by

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