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
[BUG]Speed issue #1075
Comments
That doesn't sound right. Unfortunately, without code to check what's going on, it'll be difficult for me to provide feedback. Are you using a GPU? What happens if you set |
Okay, now it is no longer taking as long, I finished an issue with the dimensions of my sequences. However I am getting 'nan' improvement now: ` starts = [0.5, 0.5] model = DenseHMM([d, d], starts = starts, max_iter=10, verbose=True) The output is: Furthermore, all the predictions have a value of 0, which is perhaps why there is nan improvement. |
When you pass in |
Describe the bug
A clear and concise description of what the bug is, including what you were expecting to happen and what actually happened. Please report the version of pomegranate that you are using and the operating system. Also, please make sure that you have upgraded to the latest version of pomegranate before submitting the bug report.
I am using the latest version of pomegranate. My code is taking an incredibly slow amount of time to run, all I am doing is creating an uninitialized hmm and fitting it to my data. The model is 2 states, and the emissions are multivariate (2 features), that take on a range of about 20 numbers each. Furthermore, when I print out the predictions I am only getting a state assignment of 1. I tried it on just 2 iterations and it took about 6 minutes.
To Reproduce
Please provide a snippet of code that can reproduce this error. It is much easier for us to track down bugs and fix them if we have an example script that fails until we're successful.
import pomegranate
import seaborn; seaborn.set_style('whitegrid')
import torch
#https://pomegranate.readthedocs.io/en/latest/tutorials/B_Model_Tutorial_4_Hidden_Markov_Models.html#Initializing-Hidden-Markov-Models
print(pomegranate.version)
from pomegranate.hmm import DenseHMM
Here is a snippet of what mv_emissions looks like: [[[16, 11],
[16, 12],
[13, 12],
[15, 12],
[15, 9],
[14, 6],
[15, 3],
[9, 6],]]
Response time
Although I will likely respond during weekdays if I am not on vacation, I am not likely to be able to merge PRs or write code until the weekend.
The text was updated successfully, but these errors were encountered: