Package ai.djl.training.tracker
Class LinearTracker
- java.lang.Object
-
- ai.djl.training.tracker.LinearTracker
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLinearTracker.BuilderThe Builder to construct anLinearTrackerobject.
-
Constructor Summary
Constructors Constructor Description LinearTracker(LinearTracker.Builder builder)Creates a new instance ofFactorTracker.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LinearTracker.Builderbuilder()Creates a new builder.floatgetNewValue(int numUpdate)Fetches the value after the given number of steps/updates.
-
-
-
Constructor Detail
-
LinearTracker
public LinearTracker(LinearTracker.Builder builder)
Creates a new instance ofFactorTracker.- Parameters:
builder- the builder to create a new instance ofFactorTracker
-
-
Method Detail
-
builder
public static LinearTracker.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
-
-