erdogant / bnlearn

Python library for learning the graphical structure of Bayesian networks, parameter learning, inference and sampling methods.
https://erdogant.github.io/bnlearn
Other
465 stars 46 forks source link

BUG report #8

Closed ms440 closed 3 years ago

ms440 commented 3 years ago

https://github.com/erdogant/bnlearn/blob/master/bnlearn/structure_learning.py#L16:

Current code:

from pgmpy.estimators import ExhaustiveSearch, HillClimbSearch, ConstraintBasedEstimator

Proposed fix:

from pgmpy.estimators import ExhaustiveSearch, HillClimbSearch
from pgmpy.estimators import PC as ConstraintBasedEstimator

Explanation:

pgmpy's estimators do not include ConstraintBasedEstimator. PC estimator could be used instead.