Package ai.djl.training.tracker
Class MultiFactorTracker
- java.lang.Object
-
- ai.djl.training.tracker.MultiFactorTracker
-
- All Implemented Interfaces:
ParameterTracker,Tracker
public class MultiFactorTracker extends java.lang.Object implements Tracker
MultiFactorTrackeris an implementation ofTrackerwhich returns piecewise constant values for fixed numbers of steps. multiplicative factor, at an uneven interval of steps, until it reaches a specified stop value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultiFactorTracker.BuilderThe Builder to construct anMultiFactorTrackerobject.
-
Constructor Summary
Constructors Constructor Description MultiFactorTracker(MultiFactorTracker.Builder builder)Creates a new instance ofMultiFactorTracker.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiFactorTracker.Builderbuilder()Creates a new builder.floatgetNewValue(int numUpdate)Fetches the value after the given number of steps/updates.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ai.djl.training.tracker.Tracker
getNewValue
-
-
-
-
Constructor Detail
-
MultiFactorTracker
public MultiFactorTracker(MultiFactorTracker.Builder builder)
Creates a new instance ofMultiFactorTracker.- Parameters:
builder- the builder to create a new instance ofMultiFactorTracker
-
-
Method Detail
-
builder
public static MultiFactorTracker.Builder builder()
Creates a new builder.- Returns:
- a new builder
-
getNewValue
public float getNewValue(int numUpdate)
Fetches the value after the given number of steps/updates.- Specified by:
getNewValuein interfaceTracker- Parameters:
numUpdate- the total number of steps/updates- Returns:
- this
Builder
-
-