Package ai.djl.training.tracker
Class FactorTracker.Builder
java.lang.Object
ai.djl.training.tracker.FactorTracker.Builder
- Enclosing class:
- FactorTracker
The Builder to construct an
FactorTracker object.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aFactorTrackerblock.optMaxUpdates(int maxUpdates) Sets the maximum number of updates after which the value should remain constant.optMinValue(float min) Sets the minimum value.setBaseValue(float baseValue) Sets the initial value after no steps.setFactor(float factor) Sets the value of the multiplicative factor.
-
Method Details
-
setBaseValue
Sets the initial value after no steps.- Parameters:
baseValue- the initial value- Returns:
- this
Builder
-
setFactor
Sets the value of the multiplicative factor.- Parameters:
factor- the value of the multiplicative factor- Returns:
- this
Builder
-
optMinValue
Sets the minimum value.This is equivalent to the max updates. Only one can be set.
- Parameters:
min- the minimum value- Returns:
- this
Builder
-
optMaxUpdates
Sets the maximum number of updates after which the value should remain constant.- Parameters:
maxUpdates- the maximum number of updates after which the value should remain constant- Returns:
- this
Builder
-
build
Builds aFactorTrackerblock.- Returns:
- the
FactorTrackerblock
-