result
class Result
dataclass
#
Collect all results in a class for clarity.
fidelity: F
attr
#
The fidelity of this result.
config: C
classvar
attr
#
The config used to generate this result.
score: float
abstractmethod
prop
#
The score of interest.
error: float
abstractmethod
prop
#
The error of interest.
test_score: float
abstractmethod
prop
#
The score on the test set.
test_error: float
abstractmethod
prop
#
The error on the test set.
val_score: float
abstractmethod
prop
#
The score on the validation set.
val_error: float
abstractmethod
prop
#
The score on the validation set.
cost: float
abstractmethod
prop
#
The time cost for evaluting this config.
def from_dict(config, result, fidelity)
classmethod
#
Create from a dict or mapping object.
Source code in src/mfpbench/result.py
def names()
classmethod
#
def from_row(config, row, fidelity)
classmethod
#
class GenericTabularResult
dataclass
#
Bases: Result[C, F]
, Generic[C, F]
A generic tabular result.
This is useful for adhoc tabular benchmarks.
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 score on the validation set.
cost: float
prop
#
The time cost for evaluting this config.
def __hash__()
#
def dict()
#
def from_dict(config, result, fidelity)
classmethod
#
Create from a dict or mapping object.