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

Add functionality to HMM package to load and save HMMs from pickle files #36

Merged
merged 7 commits into from
Mar 7, 2025

Conversation

ncguilbeault
Copy link
Collaborator

@ncguilbeault ncguilbeault commented Nov 19, 2024

Summary

This PR adds functionality to the Bonsai.ML.HiddenMarkovModels package to enable HMMs to be saved to and loaded from pickle files on disk.

Changes

  • Fixed issue with loading and saving pickle object
  • Added include workflow for loading from pkl
  • Update package version to preview
  • Update workflow to include quotes around string path
  • Add custom unpickler to fix issue with missing module

@glopesdev glopesdev added the feature New planned feature label Jan 10, 2025
@ncguilbeault ncguilbeault force-pushed the dev/hmm-load-save-from-pkl branch from 429b589 to 6ce9de0 Compare January 10, 2025 13:26
@ncguilbeault ncguilbeault force-pushed the dev/hmm-load-save-from-pkl branch from 6ce9de0 to 2545e51 Compare January 20, 2025 14:50
glopesdev

This comment was marked as resolved.

…ickle` for consistency with python's pickle library.
@glopesdev glopesdev self-requested a review February 22, 2025 00:22
Copy link
Member

@glopesdev glopesdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noticed another small naming detail. In the below properties it would be nice if they can be given a standard name such as FileName.

The reason this is convenient is that it makes it possible to point a single externalized property with that name to multiple nodes, which we often do to avoid having to coordinate other more complex value passing mechanisms such as subjects.

@glopesdev glopesdev self-requested a review March 7, 2025 11:31
@glopesdev glopesdev merged commit 3be46d3 into main Mar 7, 2025
2 checks passed
@glopesdev glopesdev deleted the dev/hmm-load-save-from-pkl branch March 7, 2025 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New planned feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants