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

Can the model state distributions be fixed? #976

Closed
malonzm1 opened this issue May 31, 2022 · 3 comments
Closed

Can the model state distributions be fixed? #976

malonzm1 opened this issue May 31, 2022 · 3 comments

Comments

@malonzm1
Copy link

Hi!

Can the model state distributions be fixed? Only fit the transition probability matrix?

Thanks and good day.

@jmschrei
Copy link
Owner

Yes. Pass frozen=True when constructing the distribution. If you're training a HMM you can also pass distribution_inertia=1.0 into the from_samples or fit methods.

@malonzm1
Copy link
Author

malonzm1 commented May 31, 2022

Thanks. When I use frozen=True the state distribution parameters become NaN.

"parameters" : [
NaN,
NaN
],

But distribution_intertia=1.0 works. Thanks.

@jmschrei
Copy link
Owner

Glad that it's working.

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

No branches or pull requests

2 participants