nvalchemi.hooks.RichLayout#
- class nvalchemi.hooks.RichLayout(*args, **kwargs)[source]#
Layout policy used by
RichReporter.- default_preview_batch_count()[source]#
Return the batch metadata used by static dashboard previews.
- Return type:
int | None
- default_preview_epoch()[source]#
Return the epoch metadata used by static dashboard previews.
- Return type:
int | None
- default_preview_history()[source]#
Return synthetic metric curves for static dashboard previews.
- Return type:
Mapping[str, Sequence[float]]
- default_preview_stage()[source]#
Return the hook stage label used by static dashboard previews.
- Return type:
str
- render(snapshot, history, *, title, precision, max_scalars, plot_keys, max_plots, plot_height)[source]#
Build the Rich layout for one reporter snapshot.
- Parameters:
snapshot (ScalarSnapshot | None)
history (Mapping[str, Sequence[tuple[int, float]]])
title (str)
precision (int)
max_scalars (int | None)
plot_keys (Sequence[str] | None)
max_plots (int)
plot_height (int)
- Return type:
Layout