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
File "pomegranate/hmm.pyx", line 1047, in pomegranate.hmm.HiddenMarkovModel.bake UnboundLocalError: local variable 'dist' referenced before assignment #1005
Comments
You need to either initialize the model with a structure by adding edges and nodes using the |
Hi @jmschrei ! I used the
Issue:
Many Thanks for your help with this, really appreciate it! |
Not sure where to post this (as Discussions aren`t enabled in this repository), so here's (what I consider) the 2nd best place. There's a big discrepancy between the versions published on [PyPI]: Pomegranate and the corresponding tags (which should indicate the source code states used to build those versions) in this repository, so when a problem arises (and it will definitely will, as there are some places in the code that don't handle "special" cases) it's hard to watch (and fix) such a problem. |
Thank you for opening an issue. pomegranate has recently been rewritten from the ground up to use PyTorch instead of Cython (v1.0.0), and so all issues are being closed as they are likely out of date. Please re-open or start a new issue if a related issue is still present in the new codebase. |
Describe the bug
Trying to do a supervised training with pomegranate.hmm.HiddenMarkovModel. Expecting to train the model and test on observations. However this is the err even though not using dist:
Pomegranate Version: 0.14.4:
To Reproduce
Thank you so much for your thoughts on this.
The text was updated successfully, but these errors were encountered: