Package ai.djl.training.tracker
Class MultiFactorTracker.Builder
java.lang.Object
ai.djl.training.tracker.MultiFactorTracker.Builder
- Enclosing class:
- MultiFactorTracker
The Builder to construct an
MultiFactorTracker object.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMultiFactorTrackerblock.optFactor(float factor) Set the value of the multiplicative factor.setBaseValue(float baseValue) Sets the initial value after no steps.setSteps(int[] steps) Sets an array of integers indicating when the value should be changed, usually in an uneven interval of steps.
-
Method Details
-
setBaseValue
Sets the initial value after no steps.- Parameters:
baseValue- the initial value- Returns:
- this
Builder
-
setSteps
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
Set the value of the multiplicative factor.- Parameters:
factor- the value of the multiplicative factor- Returns:
- this
Builder
-
build
Builds aMultiFactorTrackerblock.- Returns:
- the
MultiFactorTrackerblock
-