Skip to content

rbv2

class RBV2Config
dataclass
#

Bases: YAHPOConfig

def from_dict(d)
classmethod
#

Create from a dict or mapping object.

Source code in src/mfpbench/yahpo/benchmarks/rbv2/rbv2.py
@classmethod
def from_dict(cls: type[C], d: Mapping[str, Any]) -> C:
    """Create from a dict or mapping object."""
    # We may have keys that are conditional and hence we need to flatten them
    config = {k.replace(".", "__"): v for k, v in d.items()}
    return cls(**config)

def dict() #

Converts the config to a raw dictionary.

Source code in src/mfpbench/yahpo/benchmarks/rbv2/rbv2.py
def dict(self) -> dict[str, Any]:
    """Converts the config to a raw dictionary."""
    d = asdict(self)
    return {k.replace("__", "."): v for k, v in d.items() if v is not None}

class RBV2Result
dataclass
#

Bases: YAHPOResult[C, float]

score: float
prop
#

The score of interest.

error: float
prop
#

The error of interest.

test_score: float
prop
#

The score on the test set.

test_error: float
prop
#

The error on the test set.

val_score: float
prop
#

The score on the validation set.

val_error: float
prop
#

The error on the validation set.

cost: float
prop
#

The time taken in seconds to train the config.