Skip to navigation

nemo_gym.eval.comparison.pooling

View as Markdown

Pool independent repeat observations without averaging run-level estimates.

Module Contents

Functions

NameDescription
_finite_number-
_pooled_groupsRecompute per-task rewards from observations; never average task summaries.
_pooled_metric_samplesRequire complete quality samples and retain explicitly available token accounting.
_quality_rowsKeep scored metric estimates while recognizing accounting-only producer rows.
_validated_rowsValidate the observation structure before collecting any metric samples.
pool_loaded_runsConcatenate complete repeat samples and recompute point estimates and 95% intervals.

API

nemo_gym.eval.comparison.pooling._finite_number(
value: object
) -> typing.TypeGuard[int | float]
nemo_gym.eval.comparison.pooling._pooled_groups(
) -> typing.Tuple[typing.List[typing.Dict[str, typing.Any]], typing.Optional[str]]

Recompute per-task rewards from observations; never average task summaries.

nemo_gym.eval.comparison.pooling._pooled_metric_samples(
name: str,
rows_by_source: typing.Sequence[typing.List[typing.Dict[str, typing.Any]]],
source_labels: typing.Sequence[str]
) -> typing.Tuple[typing.List[float], typing.List[str]]

Require complete quality samples and retain explicitly available token accounting.

nemo_gym.eval.comparison.pooling._quality_rows(
rows: typing.List[typing.Dict[str, typing.Any]],
label: str
) -> typing.List[typing.Dict[str, typing.Any]]

Keep scored metric estimates while recognizing accounting-only producer rows.

nemo_gym.eval.comparison.pooling._validated_rows(
label: str
) -> typing.List[typing.Dict[str, typing.Any]]

Validate the observation structure before collecting any metric samples.

nemo_gym.eval.comparison.pooling.pool_loaded_runs(
source_labels: typing.Sequence[str]

Concatenate complete repeat samples and recompute point estimates and 95% intervals.

Each repeat has equal weight, even when sources have different repeat counts. Metrics available only as whole-run aggregates (including pass@k summaries) are omitted. A metric other than token accounting must be finite in every scored row of every source. Token metrics use the observations that record them, including accounting-only rows from unscored repeats, without inventing a zero quality or token estimate.