Package ai.djl.training.tracker
Interface Tracker
- All Superinterfaces:
ParameterTracker
- All Known Implementing Classes:
CosineTracker,CyclicalTracker,FactorTracker,LinearTracker,MultiFactorTracker,PolynomialDecayTracker,WarmUpTracker
A
Tracker represents a hyperparameter that changes gradually through the training
process.-
Method Summary
Modifier and TypeMethodDescriptionstatic CosineTracker.Buildercosine()Returns a new instance ofCosineTracker.Builderthat can build anCosineTracker.static CyclicalTracker.Buildercyclical()Returns a new instance ofCyclicalTracker.Builderthat can build anCyclicalTracker.static FactorTracker.Builderfactor()Returns a new instance ofFactorTracker.Builderthat can build anFactorTracker.static Trackerfixed(float value) Returns a new instance ofTrackerwith a fixed value.floatgetNewValue(int numUpdate) Fetches the value after the given number of steps/updates.default floatgetNewValue(String parameterId, int numUpdate) Fetches the value after the given number of steps/updates for the parameter.static MultiFactorTracker.BuilderReturns a new instance ofMultiFactorTracker.Builderthat can build anMultiFactorTracker.static WarmUpTracker.BuilderwarmUp()Returns a new instance ofWarmUpTracker.Builderthat can build anWarmUpTracker.
-
Method Details
-
getNewValue
float getNewValue(int numUpdate) Fetches the value after the given number of steps/updates.- Parameters:
numUpdate- the total number of steps/updates- Returns:
- this
Builder
-
getNewValue
Fetches the value after the given number of steps/updates for the parameter.- Specified by:
getNewValuein interfaceParameterTracker- Parameters:
parameterId- the id of the parameter to get the new value fornumUpdate- the total number of steps/updates- Returns:
- this
Builder
-
factor
Returns a new instance ofFactorTracker.Builderthat can build anFactorTracker.- Returns:
- the
FactorTrackerFactorTracker.Builder
-
warmUp
Returns a new instance ofWarmUpTracker.Builderthat can build anWarmUpTracker.- Returns:
- the
WarmUpTrackerWarmUpTracker.Builder
-
multiFactor
Returns a new instance ofMultiFactorTracker.Builderthat can build anMultiFactorTracker.- Returns:
- the
MultiFactorTrackerMultiFactorTracker.Builder
-
cosine
Returns a new instance ofCosineTracker.Builderthat can build anCosineTracker.- Returns:
- the
CosineTrackerCosineTracker.Builder
-
cyclical
Returns a new instance ofCyclicalTracker.Builderthat can build anCyclicalTracker.- Returns:
- the
CyclicalTrackerCyclicalTracker.Builder
-
fixed
Returns a new instance ofTrackerwith a fixed value.- Parameters:
value- the fixed value- Returns:
- an instance of
Trackerwith a fixed value
-