Closed Chilkos closed 3 years ago
Im going to check it. Issues with networkx is most of the time versioning stuf. So you can try python 3.6 or 3.8 and the recommended networkx version (see requirements)
I did check the working with python 3.8.8 and it seems to work fine. Maybe your networkx version is <2.5?
Can you check the following:
import networkx
print(networkx.__version__)
# This should be >= 2.5
Force update networkx with:
pip install -U networkx
Seems that I was on version 2.5 of networkx, and updating installed version 2.5.1. Running the example code works now and shows the graph, thanks for the help!
I've just tried to use bnlearn for the first time, and am trying to run the example code from the readme. However, it gives an error when running
G = bn.plot(model)
This is in a fresh Anaconda installation (Python 3.8.8), with pgmpy and pip installed as per the quickstart/installation guide (using
conda
andpip
respectively)