performance_gauge
- class cockpit.instruments.performance_gauge(self, fig, gridspec)[source]
Plotting train/valid accuracy vs. epoch and mini-batch loss vs. iteration.
This instruments visualizes the currently most popular diagnostic metrics. It shows the mini-batch loss in each iteration (overlayed with an exponentially weighted average) as well as accuracies for both the training as well as the validation set. The current accuracy numbers are also shown in the legend.
Preview
Requires
This instrument visualizes quantities passed via the
cockpit.Cockpit.log()
method.- 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