Trees#
The estimators of RuleTree, with the scikit-learn API. See Getting started.
Classification and regression#
RuleTree for classification. |
|
RuleTree for regression, with one target or several targets at once. |
Clustering#
RuleTree for clustering: each leaf is a cluster described by the rules of its path. |
|
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. |
|
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#
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.
Base class of the RuleTree models. |
|
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. |