early_stopping_gauge
- class cockpit.instruments.early_stopping_gauge(self, fig, gridspec)[source]
Early Stopping gauge, showing the LHS of the stopping criterion versus iteration.
Early stopping the training has been widely used to prevent poor generalization due to over-fitting. Mahsereci et al. (2017) proposed an evidence-based stopping criterion based on mini-batch statistics. This instruments visualizes this criterion versus iteration, overlayed with an exponentially weighted average. If the stopping criterion becomes positive, this suggests stopping the training according to
Preview
Requires
This instrument requires data from the
EarlyStopping
quantity class.- Parameters
self (CockpitPlotter) – The cockpit plotter requesting this instrument.
fig (matplotlib.figure.Figure) – Figure of the Cockpit.
gridspec (matplotlib.gridspec.GridSpec) – GridSpec where the instrument should be placed