Package ai.djl.training.tracker
Class MultiFactorTracker
java.lang.Object
ai.djl.training.tracker.MultiFactorTracker
- All Implemented Interfaces:
ParameterTracker
,Tracker
MultiFactorTracker
is an implementation of Tracker
which 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 ClassesModifier and TypeClassDescriptionstatic final class
The Builder to construct anMultiFactorTracker
object. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance ofMultiFactorTracker
. -
Method Summary
Modifier and TypeMethodDescriptionstatic MultiFactorTracker.Builder
builder()
Creates a new builder.float
getNewValue
(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 Details
-
MultiFactorTracker
Creates a new instance ofMultiFactorTracker
.- Parameters:
builder
- the builder to create a new instance ofMultiFactorTracker
-
-
Method Details
-
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:
getNewValue
in interfaceTracker
- Parameters:
numUpdate
- the total number of steps/updates- Returns:
- this
Builder
-