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

Unresolved reference in Pycharm #1066

Open
pipobingo opened this issue Nov 4, 2023 · 2 comments
Open

Unresolved reference in Pycharm #1066

pipobingo opened this issue Nov 4, 2023 · 2 comments

Comments

@pipobingo
Copy link

I have installed the package Pomegranate on my project. I use Pycharm. I then import at the beginning of my file with the command :

import pomegranate, time, seaborn, numpy
from pomegranate import *
states = [MultivariateGaussianDistribution(means[i], numpy.eye(means.shape[1])) for i in range(transmat.shape[0])]
model = HiddenMarkovModel.from_matrix(transmat, states, start_probs, merge='None')

Unfortunatly, Pycharm does not recognise the references MultivariateGaussianDistribution and HiddenMarkovModel. It states : Unresolved reference 'HiddenMarkovModel'. I have reinstalled the package many times but that doesn't change anything.

Can someone help ?

@jmschrei
Copy link
Owner

jmschrei commented Nov 4, 2023

MultivariateGaussianDistribution and HiddenMarkovModel are objects in pomegranate before the recent rewrite. Please see the README for reasoning. What you're looking for is Normal (https://github.com/jmschrei/pomegranate/blob/master/pomegranate/distributions/normal.py#L22) and either SparseHMM or DenseHMM (probably DenseHMM).

@pipobingo
Copy link
Author

Thank you very much for your help. Things have sundenly become clearer.

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