pyAgrum.skbn documentation

Probabilistic classification in pyAgrum aims to propose a scikit-learn classifier class that can be used in the same codes as sklearn classifiers. Moreover, once the graphical models is built, skbn optimally code the classifier using the smallest set of features needed following the d-separation criterion (Markov Blanket).

Causality in pyAgrum

An example from scikit-learn where a last column with a BNClassifier has been added flawlessly (see this notebook).

The module proposes to wrap the pyAgrum’s learning algorithms and some others (naive Bayes, TAN, Chow-Liu tree) in the fit method of a classifier. In order to be used with continuous variable, the module proposes also some different discretization methods.

skbn is a set of pure python3 scripts based on pyAgrum’s tools.

Tutorials

Reference