Skip to content

rbv2_aknn

class RBV2aknnConfig
dataclass
#

Bases: RBV2Config

def validate() #

Validate this config.

Source code in src/mfpbench/yahpo/benchmarks/rbv2/rbv2_aknn.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 18 <= self.M <= 50
    assert self.distance in ["l2", "cosine", "ip"]
    assert 7 <= self.ef <= 403
    assert 7 <= self.ef_construction <= 1097
    assert 1 <= self.k <= 50