|
| dict[str, Any] | load_yaml (str|Path path) |
| |
| dict[str, Any] | apply_overrides (dict[str, Any] data, Sequence[str] overrides) |
| |
| T | T (type[T] cls, Mapping[str, Any] data) |
| |
| Any | to_dict (Any obj) |
| |
| T | T (type[T] cls, str|Path path, Sequence[str] overrides=()) |
| |
| None | save_config (Any obj, str|Path path) |
| |
| Any | _coerce (Any tp, Any value) |
| |
| dict[str, Any] | _deepcopy_dict (Mapping[str, Any] d) |
| |
YAML configuration files loaded into frozen dataclasses.
Configs live in ``configs/`` as plain YAML. Each experiment declares a frozen
dataclass tree; :func:`load_config` validates the YAML against it, applies
``dotted.key=value`` overrides (e.g. from the command line or a SLURM script),
and returns the typed object. :func:`save_config` writes the *resolved* config
so every run directory records exactly what was executed.