common.dataset¶
Dataset vocabulary shared across the agent packages.
Dependency-light on purpose: the shared layer (common) must stay
importable without the ML stack, so the dataset types it defines live
here, not in ml.dataset.
Classes
|
A map's validation result, ordered so that a better result is greater. |
|
Which split of the training dataset is active. |
- class common.dataset.Result(coverage_percent, tests_number, steps_number, errors_number)[source]¶
Bases:
objectA map’s validation result, ordered so that a better result is greater.
a < bmeansbis better: higher coverage, then fewer tests, then fewer steps, then more errors. The ordering lives solely insort_keyand__lt__; construction sites pass the plain (non-negated) counts.The on-disk representation (
to_tuple()/from_tuple()) keeps the historical sign-flipped tuple format(coverage, -tests, -steps, errors)so existing processed datasets remain readable.