PyBNesian icon indicating copy to clipboard operation
PyBNesian copied to clipboard

Running pybnesian in 2024

Open jrzkaminski opened this issue 2 years ago • 5 comments

Hello! If someone ever considers to return to this package, please, keep in mind that apache change: - BitUtil namespace has been renamed to bit_utls

So the code won't be compiled with modern apache arrow versions. I'd say go with <=9.0.0

Also, callbacks do not work if pybnesian is installed from pip, python does not see package modules like learning or models. I've managed to compile the library from source on arch linux with python 3.8.18, clang 16.0.6-1 and these python libraries:

numpy==1.24.4
pandas==2.0.3
pyarrow==3.0.0
pybind11==2.11.1
pybnesian==0.0.1
python-dateutil==2.8.2
pytz==2023.3.post1
scipy==1.10.1
six==1.16.0
tzdata==2023.4

And if you encounter RuntimeError: OpenCL platforms not found., please install OpenCL for you Nvidia, AMD GPU or intel, amd CPU

If you are using conda, please see: https://stackoverflow.com/questions/72540359/glibcxx-3-4-30-not-found-for-librosa-in-conda-virtual-environment-after-tryin

jrzkaminski avatar Jan 17 '24 12:01 jrzkaminski

Hi Jerzy, thanks much for sharing this. Actually I'm trying to build structure learning algorithm for hybrid DBN and I found this repo has implemented this. But it was implemented in C++ which I am not very familiar with. Could you recommend some other python library? @jrzkaminski

yfpeng1234 avatar Jun 16 '24 03:06 yfpeng1234

@yfpeng1234 Hello! As far as I know causalnex has some implementation of DBNs, however, it is not fully featured, lacks different structure learning algorithms and so on. We are going to release some implementation of DBN in our BAMT package in 1-2 months or so.

jrzkaminski avatar Jun 16 '24 09:06 jrzkaminski

Hi @jrzkaminski ! Thanks so much for your prompt reply. Your suggestion is really helpful to me and look forward to your project. By the way, I also found that PyBNesian has implemented heterogenous BN type(for mixing discrete and continous variables) and dynamic bayesian network.

yfpeng1234 avatar Jun 16 '24 15:06 yfpeng1234

Hi Jerzy, thanks much for sharing this. Actually I'm trying to build structure learning algorithm for hybrid DBN and I found this repo has implemented this. But it was implemented in C++ which I am not very familiar with. Could you recommend some other python library? @jrzkaminski

hi,@yfpeng1234 ! I'm trying to implement structure learning algorithm for hybrid DBN,too, but struggling with the code. May I discuss with you further?My email address: [email protected] thank u~

Evelyn697 avatar Dec 10 '24 11:12 Evelyn697

Hi @Evelyn697 , thanks for reaching out. Actually I directly use a Dynamic Gaussian Bayesian network for my project, as implementing a hybrid DBN is too complex using current open-source packages. Feel free to email me via [email protected] if you have any other question. Best

yfpeng1234 avatar Dec 10 '24 12:12 yfpeng1234