Examples#

Notebooks that train a tree end to end, from loading the data to reading the rules. They are the notebooks of the Examples folder of the repository, run again at every build of this documentation.

Classification

A RuleTreeClassifier on the breast cancer data: rules, predictions, probabilities and the contributions of the features.

RuleTree for classification
Regression

A RuleTreeRegressor on the diabetes data: rules, predictions and the contributions of the features.

RuleTree for regression
Clustering

A RuleTreeCluster on the breast cancer data, compared with the classes.

RuleTree for clustering
Pivot trees

A classifier whose splits are distances from instances of the training set.

Pivot trees
Pivot trees on different data types

Pivot trees of depth 2 on tabular data, images, time series and texts, with their pivots.

Pivot trees on different data types
Classification of a DataFrame

A tree trained on the columns of a pandas DataFrame, with classes as strings, and its Graphviz source.

Classification of a pandas DataFrame