Base
What a predictor answers at a compute budget, and which predictor answers what.
The fits live in one module per predictor (power_law, chinchilla3, gp); the
per-trial-prefix trajectories and their caching live in trajectory.
Row
module-attribute
#
One evaluated run as (n_params, n_data, loss, flops).
PredictorTypes
#
Bases: Enum
value is the on-disk slug (cache filenames, result dirs). display_label is
what shows up in figures and tables.
__new__
#
__new__(
slug: str,
color: str,
display_label: str,
provides: frozenset[Target],
) -> PredictorTypes
A member with value slug and the given attributes.
Source code in scalefm/prediction/base.py
providing
classmethod
#
providing(target: Target) -> list[PredictorTypes]
Target
#
Bases: Enum
What a prediction at a compute budget contains.
LOSS: the best loss reachable with that compute.COARSE: the compute optimal model size and data,(n_params, n_data).FULL: the compute optimal full configuration.
check_provides
#
check_provides(
predictor_type: PredictorTypes, target: Target
) -> None
Raise a ValueError if predictor_type cannot predict target.
Source code in scalefm/prediction/base.py
flatten_rows
#
Every row, with grouped learning-curve rows concatenated.
Source code in scalefm/prediction/base.py
last_point_in_curve
#
The final row of each grouped learning curve; plain rows are returned as is.