Using bnlearn with Google colab
Hello, I tried using bnlearn recently but encountered compatibility issues due to the new Python engine in Google Colab and the recently updated pgmpy package that makes fitting and even scoring the model impossible without an update. I hope the package is updated soon because I always use Colab to code. Thank you and well done.
Which version of blearn are you using? import bnlearn bnlearn.__ version __
Hello again, thank you for replying. I am using Version 0.11.1 and it uses pgmpy version 0.1.25, pgmpy was recently updated to 1.0.0
Thats correct. Updating to the latest version of pgmpy has many incompatibility issues and requires installing a large number of AI-packages. Therefore I did froze the installation of pgmpy.
When using colab I also noticed an error because of numpy.
In my case it works fine when pip install this as latest numpy version:
pip install -U numpy==1.26.4
Okay, I will try that and let you know