Base class for the tree splitters.
Each Attribute Observer (AO) or Splitter monitors one input feature and finds the best split point for this attribute. AOs can also perform other tasks related to the monitored feature, such as estimating its probability density function (classification case).
This class should not be instantiated, as none of its methods are implemented.
Determine whether or not the splitter works with numerical features.
Check on which kind of learning task the splitter is designed to work. If
True, the splitter works with classification trees, otherwise it is designed for regression trees.
Get the best split suggestion given a criterion and the target's statistics.
- criterion — 'SplitCriterion'
- pre_split_dist — 'list | dict'
- att_idx — 'base.typing.FeatureName'
- binary_only — 'bool'
BranchFactory: Suggestion of the best attribute split.
Get the probability for an attribute value given a class.
- target_val — 'base.typing.ClfTarget'
float: Probability for an attribute value given a class.
Update statistics of this observer given an attribute value, its target value and the weight of the instance observed.
- target_val — 'base.typing.Target'
- sample_weight — 'float'