Package ai.djl.training.tracker
Class MultiFactorTracker.Builder
- java.lang.Object
-
- ai.djl.training.tracker.MultiFactorTracker.Builder
-
- Enclosing class:
- MultiFactorTracker
public static final class MultiFactorTracker.Builder extends java.lang.ObjectThe Builder to construct anMultiFactorTrackerobject.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiFactorTrackerbuild()Builds aMultiFactorTrackerblock.MultiFactorTracker.BuilderoptFactor(float factor)Set the value of the multiplicative factor.MultiFactorTracker.BuildersetBaseValue(float baseValue)Sets the initial value after no steps.MultiFactorTracker.BuildersetSteps(int[] steps)Sets an array of integers indicating when the value should be changed, usually in an uneven interval of steps.
-
-
-
Method Detail
-
setBaseValue
public MultiFactorTracker.Builder setBaseValue(float baseValue)
Sets the initial value after no steps.- Parameters:
baseValue- the initial value- Returns:
- this
Builder
-
setSteps
public MultiFactorTracker.Builder setSteps(int[] steps)
Sets an array of integers indicating when the value should be changed, usually in an uneven interval of steps.- Parameters:
steps- an array of integers indicating when the value should be change- Returns:
- this
Builder
-
optFactor
public MultiFactorTracker.Builder optFactor(float factor)
Set the value of the multiplicative factor.- Parameters:
factor- the value of the multiplicative factor- Returns:
- this
Builder
-
build
public MultiFactorTracker build()
Builds aMultiFactorTrackerblock.- Returns:
- the
MultiFactorTrackerblock
-
-