Transformers and splitters#
A Stump is a transformer, which turns the data into a feature
matrix, followed by a splitter, which finds the best split of that matrix. Any transformer can be
combined with any splitter. See Extending the library.
Transformers#
Transformer that uses the data as feature matrix: tabular data as they are, time series and images flattened into one feature per value. |
|
Transformer into the distances from candidate pivots, instances of the node that describe a class (medoids) or separate the classes. |
|
Transformer of tabular data into the distances from partial pivots, instances of the node restricted to subsets of the features. |
|
Transformer of tabular data, time series and images into pivot comparisons: for each pair of candidate pivots, whether the instance is closer to the second one than to the first. |
|
Transformer of tabular data, time series and images into oblique directions on the distances from the candidate pivots, e.g. |
|
Base class of the transformers into linear combinations of the numerical features (oblique directions): each column of the feature matrix is |
|
Transformer into the oblique directions given by a Householder reflection: the reflection that maps the principal component of the instances of the node onto the closest axis. |
|
Transformer into oblique directions on a pair of features: |
|
Transformer of time series into their distances from shapelets, subsequences selected among the ones of the time series in the node. |
|
Transformer of time series into proximity comparisons: for each pair of shapelets, whether the time series is closer to the second one than to the first. |
|
Transformer of tabular data into proximity comparisons: for each pair of partial pivots (instances of the node restricted to a few features), whether the instance is closer to the second one than to the first. |
|
Transformer of texts into the TF-IDF weights of their words (scikit-learn's |
Splitters#
Splitter for classification that maximizes the decrease of impurity (information gain). |
|
Splitter for regression that maximizes the decrease of impurity. |
|
Splitter for regression that maximizes the XGBoost gain: the similarity scores of the two children minus the one of the node, where the target are the residuals of the previous trees. |
|
Splitter for regression that maximizes the gain penalized by the unfairness of the split with respect to a sensitive attribute. |
|
Splitter for classification that evaluates all the candidate splits together with matrix operations (see FlatMatrixSplitter) and maximizes the decrease of impurity. |
|
Splitter for regression that evaluates all the candidate splits together with matrix operations (see FlatMatrixSplitter) and maximizes the decrease of impurity. |
|
Base class of the splitters that maximize the decrease of impurity, ClassificationSplitter and RegressionSplitter. |
|
Base class of the splitters that evaluate all the candidate splits of a node together: FlatMatrixClassificationSplitter and FlatMatrixRegressionSplitter. |
|
Instances that go to the left child of each candidate split. |
|
Decrease of impurity of one or more splits. |