Leaderboard¶
View source on GitHub · Run source
See Leaderboards for configuration and CLI examples.
Leaderboard¶
Bases: BaseModel
One tracking source and optional ordered metric declarations.
Parameters are always discovered from runs. Metric declarations affect presentation, never which values an adapter reads or returns.
create classmethod ¶
Validate and create a definition, refusing to replace existing files.
load classmethod ¶
Load a named leaderboard, or automatically select the sole definition.
list staticmethod ¶
List flat *.yml names without loading their configurations.
delete staticmethod ¶
Delete a definition, including malformed YAML, leaving source data intact.
Metric¶
Run¶
Bases: BaseModel
Immutable normalized run returned by tracking backends.
Attributes:
| Name | Type | Description |
|---|---|---|
id | str | Unique run ID. |
job_id | str | None | Optional execution attempt ID reported by the tracking source. |
metrics | Mapping[str, float] | Mapping of metric names to float values. |
params | Mapping[str, str] | Mapping of parameter names to string values. |
record_id | str | None | Optional bundle-relative concept path associated with the run. |
commit | str | None | Optional commit hash reported by the tracking source. |
timestamp | datetime | None | Optional run start time as a timezone-aware UTC datetime. |
duration | float | None | Optional run duration in seconds; |
url | str | None | Optional URL to the run in the backend's UI. |
raw | Mapping[str, Any] | Backend-specific public metadata for the run. |