alpha_gauge

class cockpit.instruments.alpha_gauge(self, fig, gridspec)[source]

Showing a distribution of the alpha values.

This alpha instruments provides a summary of the alpha values of all tracked iterations (shown in gray) as well as the last 10% of them (shown in blue).

The alpha value uses loss and gradient information to build a noise-informed univariate quadratic approximation of the loss function to assess to which point on this parabola the optimizer moves. The parabola (shown in orange) is always normalized such that the starting point of each iteration is at \(x=-1\). If the optimzer takes a single step to the local minimum (e.g. the valley floor) it would be indicated by an \(\alpha\) value of \(0\). Analogously, taking a step to the exact opposite side of the valley, will be descrbied by \(\alpha=1\).

The instruments shows a histogram and a distribution fit of all alpha values, as well as the last 10% of tracked iterations. The mean values of both distributions are also shown in the figure’s legend.

For a more detailed explanation of the alpha value and why - perhaps against intuition - values larger than zero might be desirable, have a look at the Cockpit paper:

Preview Alpha Gauge

Requires

This instrument requires data from the Alpha quantity class.

Parameters