nemo_gym.eval.comparison.schema
nemo_gym.eval.comparison.schema
Config and result schema for gym eval compare.
Configuration lists follow source order, including agent selectors and aggregate overrides.
Pooled candidate sources produce one result side; candidate-varying result fields follow
ComparisonResult.candidates. Comparison currently supports one candidate side.
Module Contents
Classes
Data
API
Bases: BaseModel
Bases: MetricValue
A candidate’s reading, plus its movement from the baseline.
Bases: BaseNeMoGymCLIConfig
Compare baseline and candidate eval runs, optionally pooling independent collections.
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 from which the sibling path is derived. When
a legacy aggregate lacks repeat statistics, they are reconstructed in memory from its embedded
rollout summaries for this comparison.
Examples:
To point at metrics files that do not follow the <stem>_aggregate_metrics.json convention,
use —baseline-agg-metrics, —baseline-runs-agg-metrics and —candidates-agg-metrics
in the corresponding source order. Each pooled repeat is an equally weighted observation.
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
Parsed aggregates indexed by agent; pooled paths represent the first of authoritative sources.
Short display name for the run: the directory its rollouts live in.
Bases: BaseModel
An input artifact contributing independent repeats to a pooled side.
Bases: BaseModel