Trees#

The estimators of RuleTree, with the scikit-learn API. See Getting started.

Classification and regression#

RuleTreeClassifier

RuleTree for classification.

RuleTreeRegressor

RuleTree for regression, with one target or several targets at once.

Clustering#

RuleTreeCluster

RuleTree for clustering: each leaf is a cluster described by the rules of its path.

RuleTreeClusterClassifier

RuleTreeCluster whose leaves predict a class: the tree is built as in RuleTreeCluster, without looking at the target, and each node predicts the majority class of its instances, as in RuleTreeClassifier.

RuleTreeClusterRegressor

RuleTreeCluster whose leaves predict a value: the tree is built as in RuleTreeCluster, without looking at the target, and each node predicts the mean of the target of its instances, as in RuleTreeRegressor.

Trees of the ensembles#

RuleTreeXGBoostRegressor

RuleTreeRegressor with the splits and the leaf values of XGBoost, used as base estimator of XGBoostRegressor (fitted on the residuals).

Base class and nodes#

RuleTree has the methods shared by all the trees (rules, drawing, saving, growing); each node of a fitted tree is a RuleTreeNode. See Reading the tree.

RuleTree

Base class of the RuleTree models.

RuleTreeNode

A node of a RuleTree: a leaf with a prediction, or an internal node with a stump that splits its instances between its two children.