Skip to content

pgmpy BayesianNetwork has been deprecated #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
symdec opened this issue Apr 25, 2025 · 0 comments
Open

pgmpy BayesianNetwork has been deprecated #335

symdec opened this issue Apr 25, 2025 · 0 comments

Comments

@symdec
Copy link

symdec commented Apr 25, 2025

Description

When using PrivBayes plugin with provided project's dependencies, we encounter the error "ImportError: BayesianNetwork has been deprecated. Please use DiscreteBayesianNetwork instead.".
This is linked to the release of v1.0.0 of pgmpy that has deprecated the name "BayesianNetwork".

How to Reproduce

  • pip install synthcity (it will namely install pgmpy v1.0.0)
  • Use the "privbayes" plugin and call the fit method on data.

Expected Behavior

No ImportError

System Information

  • OS: ubuntu
  • OS Version: 22.04
  • Language Version: Python 3.10
  • Package Manager Version: pip

Possible solutions

  • indicate pgmpy version >= 1.0.0 and replace BayesianNetwork by DiscreteBayesianNetwork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant