nvalchemi.hooks.TrainingRichLayout#
- class nvalchemi.hooks.TrainingRichLayout[source]#
Rich dashboard layout for training workflows.
- default_preview_history()[source]#
Return representative training metrics for preview rendering.
- Return type:
Mapping[str, Sequence[float]]
- render(snapshot, history, *, title, precision, max_scalars, plot_keys, max_plots, plot_height)[source]#
Build a training-specific Rich dashboard.
- Parameters:
snapshot (ScalarSnapshot | None) – Latest scalar snapshot, or
Nonebefore the first report.history (RichMetricHistory) – Retained scalar history keyed by metric name.
title (str) – Dashboard title.
precision (int) – Significant digits used for scalar values.
max_scalars (int | None) – Maximum number of latest scalar rows.
plot_keys (Sequence[str] | None) – Explicit plot key ordering override.
max_plots (int) – Maximum number of plot panels.
plot_height (int) – Plot height in terminal rows.
- Returns:
Renderable Rich layout with training metrics and progress.
- Return type:
Layout