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

hmm rows of transmat_ must sum to 1.0 (got [1. 0. 1. 1.]) #1

Open
Nian-Chen opened this issue Apr 15, 2021 · 3 comments
Open

hmm rows of transmat_ must sum to 1.0 (got [1. 0. 1. 1.]) #1

Nian-Chen opened this issue Apr 15, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@Nian-Chen
Copy link

First of all, thank you for open source

There is a bug in hmm.py. If you run hmm.py directly, you get 16 hmm_models for each number. The reason is that the code puts "model = hmm.GaussianHMM(n_components=4, covariance_type='diag', n_iter=1800)" into the second loop. It should be moved to the first layer of the loop

@Sherry-XLL Sherry-XLL added the bug Something isn't working label Apr 15, 2021
@Sherry-XLL
Copy link
Owner

@Nian-Chen

Thanks very much for your nice corrections. In the first version of the code, I only implemented DTW and forgot to update GMM and HMM after implementing them. I have fixed bugs and uploaded the latest version of the code, and thank you again for your attention.

@Nian-Chen
Copy link
Author

Hi, thanks for your reply, but it seems unreasonable to assemble the MFCC features of multiple samples to train a model. In fact, you can pass in the parameter "lengths" in "model.Fit", which can continuously update the model with multiple samples

Take the digit_0 as an example:
model.fit(X, lengths=X_lenth)
X_lenth is like [20 13 27 17 8 23 17 26 27 16 27 7 25 20 23 25]

@Baron-smith
Copy link

Your zip file has been damaged , could you send me a complete file to me to 13561364701@163.com. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants