Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing Online Inference with Hidden Markov Models (HMMs) #22

Merged
merged 173 commits into from
Sep 5, 2024

Conversation

ncguilbeault
Copy link
Collaborator

Summary

This PR introduces a new package to the Bonsai.ML collection designed to perform online inference using Hidden Markov Models (HMMs).

Key Features

1. Online state inference

Users can infer the probabilities that the model is in a discrete latent state given new observations of data online.

2. Learning model parameters

Users can perform online learning of model parameters (initial state distribution, transition matrix, and emission probabilities) using mini batches of data without interrupting ongoing state inference.

3. Flexible model specification

Users can initialize the HMM using different model specifications, such as specifying different observation models (gaussian, exponential, etc.).

Implementation Details

Under the hood, the package uses the Bonsai - Python Scripting package to interface with the ssm package. The current implementation of the package exposes a high-level API that allows initializing HMMs, loading/saving model parameters, online learning, and inference, which is suitable for both novice and experienced Bonsai users.

Co-authored-by: glopesdev <glopesdev@users.noreply.github.com>
@ncguilbeault ncguilbeault merged commit fa466f5 into main Sep 5, 2024
2 checks passed
@ncguilbeault ncguilbeault deleted the hidden-markov-models branch September 5, 2024 14:26
@ncguilbeault ncguilbeault mentioned this pull request Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants