A numerically-stable implementation of essential HMM algorithms with tutorials on training methods
Project description
Homomorph
Homomorph is yet another implementation of essential HMM algorithms. (Its name is a reference to its similarity to the countless other HMM packages available on PyPI.) What sets Homomorph apart is its focus on flexibility, numerical stability, and clarity of exposition. For example, though hmmlearn is popular, it only natively supports HMMs with normal, mixture normal, or categorical emission distributions. In contrast, Homomorph can directly model states parametrized by arbitrary distributions. Unlike hmmlearn, it does not provide built-in methods for fitting HMMs to data since they would necessarily rely on general-purpose optimization algorithms. Instead, training methods are discussed for specific examples in the training tutorial. It covers many scenarios and approaches, including categorical and normal emission distributions with labeled and unlabeled data. Although the HMM class is fully documented, the HMM tutorial is the recommended introduction to the Homomorph API.
Dependencies
Homomorph is designed to be lightweight and only requires NumPy for array calculations and SciPy for its implementation of random variables. The minimum versions were set to the most recent at the time of initial release (1.17 and 1.8, respectively), but no functionality specific to these releases is needed to my knowledge.
Installation
To install Homomorph, run the following command:
pip install homomorph
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
Built Distribution
Hashes for homomorph-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b0e0407dddbd7b91c9d364fe6752b5ccc81f1f21263a37a875bbbbd9d3f0f35 |
|
MD5 | c531ba5e0fee14d7318a4822bf746da8 |
|
BLAKE2b-256 | f4cfa6434e7fcf55d96f5b3bea69b4aa14e387f3a0012db7183feaa29b378d3c |