Skip to main content

An(other) implementation of Explicit Duration HMM/HSMM in Python 3

Reason this release was yanked:

0.1.3 released.

Project description

edhsmm

An(other) implementation of Explicit Duration Hidden Semi-Markov Model (EDHSMM) in Python 3.

The EM algorithm is based on Yu (2010), while the Viterbi algorithm is based on Benouareth et al. (2008).

The code style is inspired from hmmlearn and jvkersch/hsmmlearn.

Note: This is the "main" branch, which is for release. Use the "test" branch for prototyping.

Implemented so far

  • EM algorithm (with & without right-censoring)
  • Scoring (log-likelihood of observation under the model)
  • Viterbi algorithm
  • Generate samples
  • Support for multivariate Gaussian emissions
  • Support for multiple observation sequences
  • Support for multinomial (discrete) emissions

See the README in the test branch for the full timeline.

Dependencies

  • python >= 3.5
  • numpy >= 1.10
  • scikit-learn >= 0.16
  • scipy >= 0.19

Installation & Tutorial

pip install edhsmm

For tutorial, see the notebooks.

Found a bug? Suggest a feature? Please post on issues.

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

edhsmm-0.1.2.tar.gz (127.1 kB view hashes)

Uploaded Source

Built Distribution

edhsmm-0.1.2-cp37-cp37m-win_amd64.whl (93.1 kB view hashes)

Uploaded CPython 3.7m Windows 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