Split¶
-
class
bartpy.split.
SplitCondition
(splitting_variable: str, splitting_value: float)[source]¶ A representation of a split in feature space. The two main components are:
- splitting_variable: which variable is being split on
- splitting_value: the value being split on
- all values less than or equal to this go left, all values greater go right
-
condition
(data: bartpy.data.Data, cached=True) → numpy.ndarray[source]¶ Returns a Bool array indicating which side of the split each row of Data should go False => Left True => Right