accelmo.monitor.panels¶
Panels that work for any fit: they need only the run log, not the optics.
A panel is a function (MonitorView) -> bokeh model. The helpers here
(step_figure(), message(), PALETTE) are for machine-specific
panels too.
- accelmo.monitor.panels.NOT_PLOTTED = {'new_best', 'time'}¶
History columns that are bookkeeping, not quantities worth plotting.
- accelmo.monitor.panels.N_TRAJECTORIES = 12¶
How many knobs the trajectory plot follows.
- accelmo.monitor.panels.message(text)[source]¶
A panel body that only says something (waiting, missing data, an error).
- Return type:
Div- Parameters:
text (str)
- accelmo.monitor.panels.step_figure(view, title, *, y_axis_type='linear', height=260, **kwargs)[source]¶
A figure against step with the selected step marked.
- Return type:
figure- Parameters:
view (MonitorView)
title (str)
y_axis_type (Literal['linear', 'log'])
height (int)
- accelmo.monitor.panels.enable_middle_click_fit(model)[source]¶
Make a middle click on any figure in
modelrefit its y axis to the data in view.- Return type:
None- Parameters:
model (Model)
- accelmo.monitor.panels.scalars_panel(view)[source]¶
Every logged scalar against step, one plot each; positive ones on a log scale.
- Return type:
Model- Parameters:
view (MonitorView)
- accelmo.monitor.panels.loss_panel(view)[source]¶
Training (and validation) loss against step, best step marked.
- Return type:
Model- Parameters:
view (MonitorView)
- accelmo.monitor.panels.knobs_panel(view)[source]¶
Change of every knob from the start at the selected step, and the largest movers over time.
- Return type:
Model- Parameters:
view (MonitorView)
- accelmo.monitor.panels.summaries_panel(view)[source]¶
The optics source’s summary against step: one row per quantity, x (or Q1) left, y (or Q2) right.
- Return type:
Model- Parameters:
view (MonitorView)
- accelmo.monitor.panels.GENERIC_PANELS = [('Loss', <function loss_panel>), ('Scalars', <function scalars_panel>), ('Knobs', <function knobs_panel>)]¶
The panels every monitor shows, after the machine-specific ones.
- accelmo.monitor.panels.OPTICS_PANELS = [('Optics summary', <function summaries_panel>)]¶
Shown only when an optics source is configured.