distance_gauge

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

Distance gauge showing two different quantities related to distance.

This instruments shows two quantities at once. Firstly, the \(L_2\)-distance of the current parameters to their initialization. This describes the total distance that the optimization trajectory “has traveled so far” and can be seen via the blue-to-green dots (and the left y-axis).

Secondly, the update sizes of individual steps are shown via the yellow-to-blue dots (and the right y-axis). It measure the distance that a single parameter update covers.

Both quantities are overlayed with an exponentially weighted average.

Preview Distances Gauge

Requires

The distance instrument requires data from both, the UpdateSize and the Distance quantity class.

Parameters