Skip to content

rbv2_ranger

class RBV2rangerConfig
dataclass
#

Bases: RBV2Config

def validate() #

Validate this config.

Source code in src/mfpbench/yahpo/benchmarks/rbv2/rbv2_ranger.py
@no_type_check
def validate(self) -> None:
    """Validate this config."""
    assert self.num__impute__selected__cpo in [
        "impute.mean",
        "impute.median",
        "impute.hist",
    ]
    assert 1 <= self.min__node__size <= 100
    assert 0 <= self.mtry__power <= 1
    assert 1 <= self.num__trees <= 2000
    assert self.respect__unordered__factors in [
        "ignore",
        "order",
        "partition",
    ]
    assert 0.1 <= self.sample__fraction <= 1.0
    assert self.splitrule in ["gini", "extratrees"]

    if self.num__random__splits is not None:
        assert self.splitrule == "extratrees"
        assert 1 <= self.num__random__splits <= 100