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

patch hmmlearn, fix dependencies #620

Merged
merged 11 commits into from
Feb 20, 2024

Conversation

taoliu
Copy link
Contributor

@taoliu taoliu commented Feb 18, 2024

Due to the changes in scikit-learn 1.3.0: https://scikit-learn.org/1.3/whats_new/v1.3.html:

The sample_weight parameter now will be used in centroids initialization for cluster.KMeans, cluster.BisectingKMeans and cluster.MiniBatchKMeans. This change will break backward compatibility, since numbers generated from same random seeds will be different. #25752 by Gleb Levitski, Jérémie du Boisberranger, Guillaume Lemaitre.

The way hmmlearn 0.3 uses Kmeans will end up with inconsistent results between sklearn <1.3 and sklearn >=1.3. Therefore, we patched the class hmm.GaussianHMM in macs3 codes and adjusted the standard output from hmmratac subcommand. The change is based on hmmlearn/hmmlearn#545. The idea is to do the random seeding of KMeans 10 times.

Related to #615

@taoliu taoliu merged commit 70524cd into master Feb 20, 2024
17 of 20 checks passed
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