Base classes#

The interfaces implemented by the trees, the stumps and their components. New components derive from them: see Extending the library.

RuleTreeBase

Base class for RuleTree estimators.

RuleTreeBaseStump

Abstract base class of the stumps, the splits of the nodes of a RuleTree.

RuleTreeBaseTransformer

Abstract base class of the transformers, the component of a stump that turns the data of one type into a feature matrix.

RuleTreeBaseSplitter

Abstract base class of the splitters, the component of a stump that finds the best split of a feature matrix: a threshold on a numerical feature (x <= threshold goes to the left child) or a value of a categorical feature (x == value goes to the left child).

RuleTreeBaseGainSplitter

Base class of the splitters that test every candidate split and keep the one with the highest gain: a new splitter only defines the task (task) and the gain of a split (gain()).