nemo_gym.comparison.schema
nemo_gym.comparison.schema
Config and result schema for gym eval compare.
Every candidate-varying field is a list, positionally parallel to ComparisonResult.candidates.
v0 only ever compares one candidate, but keeping the shape list-valued means lifting that
restriction later is a behavior change rather than a schema change.
Module Contents
Classes
Data
API
Bases: BaseModel
Bases: BaseNeMoGymCLIConfig
Compare a baseline eval run against a candidate run.
Reads only each run’s <stem>_aggregate_metrics.json, derived from the rollouts JSONL path you
pass, and writes compare_report.md and/or compare_report.json. The rollouts JSONL itself is
never opened — it is the run’s identity and the handle the sibling path is derived from.
Examples:
To point at metrics files that do not follow the <stem>_aggregate_metrics.json convention,
set baseline_aggregate_metrics_fpath and candidate_aggregate_metrics_fpaths.
Bases: BaseModel
The machine-readable artifact written as compare_report.json.
Bases: BaseModel
Bases: BaseModel
Bases: BaseModel
One side’s reading of a metric, plus whatever uncertainty the run recorded for it.
Bases: BaseModel
One run’s parsed *_aggregate_metrics.json, indexed by agent name.
Short display name for the run: the directory its rollouts live in.
Bases: BaseModel