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

Fix hmm fit shape check #1019

Merged
merged 5 commits into from
Apr 19, 2023
Merged

Conversation

AKuederle
Copy link
Contributor

This is a proposal on how to fix #1018 .

It basically forwards the number of states to partition_sequence to check the correct shape for the priors.

So far I only tested that this will not raise an error. I did not check, if the priors are used correctly in training.

Note: This also includes the fix proposed in #1017. If this PR is merged #1017 can be closed. If #1017 is merged separably, this PR needs to be rebased

@jmschrei
Copy link
Owner

Nice! Very thorough PR. Happy to merge this, but would you mind changing the variable name from priors_last_dim to n_dists? That would be semantically more helpful.

@AKuederle
Copy link
Contributor Author

Nice! Very thorough PR. Happy to merge this, but would you mind changing the variable name from priors_last_dim to n_dists? That would be semantically more helpful.

Done :)

@jmschrei jmschrei merged commit 514bf94 into jmschrei:master Apr 19, 2023
6 checks passed
@jmschrei
Copy link
Owner

Thanks!

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.

[BUG] Check for prior shape in HMM.fit is wrong
2 participants