You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "gibbexample.py", line 12, in <module>
gibbs_chain.sample(size=3)
File "/home/pmp/.local/lib/python3.6/site-packages/pgmpy/sampling/Sampling.py", line 382, in sample
sampled[0] = np.array([st for var, st in self.state])
ValueError: setting an array element with a sequence.
The text was updated successfully, but these errors were encountered:
Subject of the issue
GibbsSampling.sample() is non-functioning, provided example does not work.
Your environment
pgmpy version
Name: pgmpy
Version: 0.1.6
Python version
Python 3.6.5
Operating System
Linux
4.15.0-23-generic
Steps to reproduce
Run the example code provided in the definition of GibbsSampling.sample()
Expected behaviour
It should work
Actual behaviour
It don't
The text was updated successfully, but these errors were encountered: