Skip to main content

Discrete time, finit state space, stationary Hidden Markov Model.

Project description

# ChainsAddiction

ChainsAddiction is a tool for simple training discrete-time Hidden Markov Models. It is written in C and features a numpy-based Python extension module.

## Installation Clone this repository, change to its root directory and issue

pip install .

## Working with the C API

## Working with the Python interpreter Calling Chains_addiction from Python is simple as pie. You just need to import it:

import chains_addiction as ca ca.hmm_poisson_fit_em(x, m, init_means, init_tpm, int_sd, max_iter=1000, tol=1e-5)

## Notes - Currently only Poisson-distributed HMM are implemented. - ChainsAddiction does not support Python 2. Specifically, it requires Python >= 3.5 and numpy >= 1.16.

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

chainsaddiction-0.1.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

chainsaddiction-0.1-cp39-cp39-macosx_11_0_x86_64.whl (11.5 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ 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