Skip to content

effector.space_partitioning.Best(min_heterogeneity_decrease_pcg=0.1, heter_small_enough=0.001, max_depth=2, min_samples_leaf=10, numerical_features_grid_size=20, search_partitions_when_categorical=True)

Bases: Base

Node-wise recursive partitioning: find the best split for each node, recurse into the children (see Base.__init__ for the parameters).

Source code in effector/space_partitioning.py
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
def __init__(
    self,
    min_heterogeneity_decrease_pcg: float = 0.1,
    heter_small_enough: float = 0.001,
    max_depth: int = 2,
    min_samples_leaf: int = 10,
    numerical_features_grid_size: int = 20,
    search_partitions_when_categorical: bool = True,
):
    super().__init__(
        "Best",
        min_heterogeneity_decrease_pcg,
        heter_small_enough,
        max_depth,
        min_samples_leaf,
        numerical_features_grid_size,
        search_partitions_when_categorical,
    )