31 questions
1
vote
1
answer
62
views
How to resolve the type error in pomegranate?
I am trying to set up a dummy code for the pomegranate (below), but for some reason I am getting an error when I try to run the ConditionalCategorical(). How do I resolve it?
from pomegranate....
1
vote
1
answer
491
views
Could not install pomegranate package for python 3.13
I've tried to install pomegranate using pip for a while now, but it seems like it can't. All it did was giving me this output.
Collecting pomegranate
Downloading pomegranate-1.1.1-py3-none-any.whl....
1
vote
1
answer
754
views
pomegranate all module is not defined
I'm using pomegranate in python, but the module is not working
All methods of pomegranate are not defined
from pomegranate import *
# Define the distributions for each node
guest = ...
2
votes
0
answers
408
views
Why can't I import HiddenMarkovModel from pomegranate packet?
When I do this:
from pomegranate import HiddenMarkovModel
It will run with this problem: ImportError: cannot import name 'HiddenMarkovModel' from 'pomegranate'.
What's wrong with it? My pomegranate ...
0
votes
2
answers
933
views
How do I use pomegranate functions
I am trying to run an example from CS50 Artificial Intelligence course involving the use of the pomegranate package (a probability model). This is the code:
from pomegranate import *
class Node():
...
0
votes
1
answer
149
views
Pomegranate unresolved reference in Pycharm
I have installed a Package named 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 ...
0
votes
1
answer
204
views
Why does multivariate hidden markov model generate one dimensional sample data?
I am using the python pomegranate library and I am initializing an hmm model using the method from_sample. I have multivariate time series data - with different observed variables (a, b, c) per ...
2
votes
1
answer
2k
views
ERROR: Could not build wheels for pomegranate, which is required to install pyproject.toml-based projects
I was trying to install pomegranate 0.6.0 on my macbook and I met an error:
Building wheels for collected packages: pomegranate
Building wheel for pomegranate (setup.py) ... error
error: ...
-2
votes
3
answers
3k
views
Can someone correct the code ? It says NameError: name 'Node' is not defined
# Also the terms Node, DiscreteDistribution, ConditionalProbabilityTable, distribution, BayesianNetwork(), add_edge, bake are not being recognised.
from pomegranate import \*
# Rain node has no ...
1
vote
1
answer
1k
views
UnboundLocalError: local variable 'dist' referenced before assignment
I am trying to train a model for supervised learning for Hidden Markov Model (HMM)and test it on a set of observations however, keep getting this error. The goal is to predict the state based on the ...
2
votes
1
answer
764
views
Saving pomegranate Bayesian Network models
I am making some rather big Bayesian Networks for generating synthetic data, and I find pomegranate to be a good alternative as it generates data quickly and easily allows for inputting evidence. I ...
3
votes
0
answers
61
views
Representing disease and syptom in pomegranate bayes network
I'm trying to work out P(m|s) probability of meningitis given "stiff neck"
So I'm trying to represent this in the model:
P(m|s) = (P(s|m) * P(m))/P(s)
P(s) = 0.1
P(m) = 0.0001
P(s|m) = 0.8
...
0
votes
0
answers
448
views
How to assure that the covariance matrices are all positive definite in Pomigranate MultivariateGaussianDistribution
As in the ScikitLearn GaussianMixture model, reg_covar=1e-06 adds Non-negative regularization to the diagonal of covariance, which ensures covariance matrices are positive definite.
sklearn.mixture....
1
vote
0
answers
48
views
Why is my learned Bayesian network not rooted at the binary class variable?
I want to compare bankrupt firm profiles among different countries using Bayesian Networks (pomegranate library in Python). The class is a binary variable (1=bankrupt, 0=active company), and the rest ...
2
votes
1
answer
955
views
How to assign a belief/value to a node in a bayesian network, using predict_proba() from pomegranate
I'm trying to create my own bayesian network programme to model a very simple court ruling scenario using pomegranate, very similar to the monty hall problem which is well documented as an example of ...