Package ai.djl.training.tracker
Interface Tracker
-
- All Superinterfaces:
ParameterTracker
- All Known Implementing Classes:
CosineTracker,CyclicalTracker,FactorTracker,LinearTracker,MultiFactorTracker,PolynomialDecayTracker,WarmUpTracker
public interface Tracker extends ParameterTracker
ATrackerrepresents a hyperparameter that changes gradually through the training process.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static 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(java.lang.String parameterId, int numUpdate)Fetches the value after the given number of steps/updates for the parameter.static MultiFactorTracker.BuildermultiFactor()Returns a new instance ofMultiFactorTracker.Builderthat can build anMultiFactorTracker.static WarmUpTracker.BuilderwarmUp()Returns a new instance ofWarmUpTracker.Builderthat can build anWarmUpTracker.
-
-
-
Method Detail
-
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
default float getNewValue(java.lang.String parameterId, int numUpdate)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
static FactorTracker.Builder factor()
Returns a new instance ofFactorTracker.Builderthat can build anFactorTracker.- Returns:
- the
FactorTrackerFactorTracker.Builder
-
warmUp
static WarmUpTracker.Builder warmUp()
Returns a new instance ofWarmUpTracker.Builderthat can build anWarmUpTracker.- Returns:
- the
WarmUpTrackerWarmUpTracker.Builder
-
multiFactor
static MultiFactorTracker.Builder multiFactor()
Returns a new instance ofMultiFactorTracker.Builderthat can build anMultiFactorTracker.- Returns:
- the
MultiFactorTrackerMultiFactorTracker.Builder
-
cosine
static CosineTracker.Builder cosine()
Returns a new instance ofCosineTracker.Builderthat can build anCosineTracker.- Returns:
- the
CosineTrackerCosineTracker.Builder
-
cyclical
static CyclicalTracker.Builder cyclical()
Returns a new instance ofCyclicalTracker.Builderthat can build anCyclicalTracker.- Returns:
- the
CyclicalTrackerCyclicalTracker.Builder
-
-