configuration
- cockpit.utils.configuration.configuration(label, track_schedule=None, verbose=False)[source]
Use pre-defined collections of quantities that should be used for tracking.
Currently supports three different configurations:
"economy"
: Combines theAlpha
,Distance
,GradHist1d
,GradNorm
,InnerTest
,Loss
,NormTest
,OrthoTest
andUpdateSize
quantities."business"
: Same as"economy"
but additionally withTICDiag
andHessTrace
."full"
: Same as"business"
but additionally withHessMaxEV
andGradHist2d
.
- Parameters
label (str) – String specifying the configuration type. Possible configurations are (least to most expensive)
'economy'
,'business'
,'full'
.track_schedule (callable, optional) – Function that maps the
global_step
to a boolean, which determines if the quantity should be computed. Defaults toNone
.verbose (bool, optional) – Turns on verbose mode. Defaults to
False
.
- Returns
Instantiated quantities for a cockpit configuration.
- Return type