Package ai.djl.training.tracker
Class LinearTracker
java.lang.Object
ai.djl.training.tracker.LinearTracker
- All Implemented Interfaces:
ParameterTracker
,Tracker
FactorTracker
is an implementation of Tracker
which is updated by a constant
factor.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The Builder to construct anLinearTracker
object. -
Constructor Summary
ConstructorsConstructorDescriptionLinearTracker
(LinearTracker.Builder builder) Creates a new instance ofFactorTracker
. -
Method Summary
Modifier and TypeMethodDescriptionstatic LinearTracker.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
-
LinearTracker
Creates a new instance ofFactorTracker
.- Parameters:
builder
- the builder to create a new instance ofFactorTracker
-
-
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
-