bnlearn icon indicating copy to clipboard operation
bnlearn copied to clipboard

Using bnlearn with Google colab

Open ERuemu101 opened this issue 10 months ago • 4 comments

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.

ERuemu101 avatar May 13 '25 01:05 ERuemu101

Which version of blearn are you using? import bnlearn bnlearn.__ version __

erdogant avatar May 13 '25 07:05 erdogant

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

ERuemu101 avatar May 13 '25 08:05 ERuemu101

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

erdogant avatar May 13 '25 09:05 erdogant

Okay, I will try that and let you know

ERuemu101 avatar May 13 '25 10:05 ERuemu101