nemo_gym.artifacts.exporters.metrics
nemo_gym.artifacts.exporters.metrics
Module Contents
Functions
Data
API
The backend key shared by health preflight and MLflow delivery, without importing the optional SDK.
Cut an over-long name in the middle, keeping both ends.
Gym names carry their identity at the edges — benchmark and agent in the prefix, the statistic
in the suffix (gpqa.../simple_agent/mean/reward) — so the middle is what can be spared.
Neutralize only the path segments MLflow rejects, leaving the rest of the name intact.
MLflow requires an already-normalized relative path, so it rejects empty segments (from
leading, doubled or trailing slashes) and the traversal forms . and ...
The scalar metrics a tracking backend gets from per-agent aggregate-metrics entries.
Live runs and post-run export both build their metrics here, so a run looks the same in the backend
either way: <agent>/<metric> and key_metrics/<agent>/<metric>, primitive values only.
Bind derived health to the same saved inputs, Store selection and underlying health report.