Skip to content

rbv2_svm

class RBV2svmConfig
dataclass
#

Bases: RBV2Config

def validate() #

Validate this config.

Source code in src/mfpbench/yahpo/benchmarks/rbv2/rbv2_svm.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 4.5399929762484854e-05 <= self.cost <= 22026.465794806718
    assert 4.5399929762484854e-05 <= self.gamma <= 22026.465794806718
    assert self.kernel in ["linear", "polynomial", "radial"]
    assert 4.5399929762484854e-05 <= self.tolerance <= 2.0

    if self.degree is not None:
        assert 2 <= self.degree <= 5
        assert self.kernel == "polynomial"

    if self.gamma is not None:
        assert 4.5399929762484854e-05 <= self.gamma <= 22026.465794806718
        assert self.kernel == "radial"