nicetoolbox.evaluation.data.input_loader.NpzMeta

class nicetoolbox.evaluation.data.input_loader.NpzMeta(npz_path: Path, npz_key: str)[source]

Bases: ABC

Abstract base for all NPZ metadata types.

Methods

align_key

Return the key used to pair this array with its counterpart during alignment.

always_iterate

Return columns that must always get their own row in summaries (never pooled).

comparable_dim

Return the dimension used to compare results side-by-side (e.g.

to_dict

Return user-facing metadata fields as a flat dict.

Attributes

npz_path

npz_key

align_key() tuple | None[source]

Return the key used to pair this array with its counterpart during alignment.

abstract static always_iterate() frozenset[str][source]

Return columns that must always get their own row in summaries (never pooled).

abstract static comparable_dim() str | None[source]

Return the dimension used to compare results side-by-side (e.g. as series/color in charts).

abstract to_dict() dict[str, Any][source]

Return user-facing metadata fields as a flat dict.