Package ai.djl.training.tracker
Class PolynomialDecayTracker.Builder
java.lang.Object
ai.djl.training.tracker.PolynomialDecayTracker.Builder
- Enclosing class:
- PolynomialDecayTracker
Builder for PolynomialDecayTracker.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a PolynomialDecayTracker.optPower(float power) Sets the power of the polynomial to decay by.setBaseValue(float baseValue) Sets the initial value after no steps.setDecaySteps(int decaySteps) Sets the number of training steps to decay learning rate in.setEndLearningRate(float endLearningRate) Sets the learning rate at which to end rate decay.
-
Method Details
-
setBaseValue
Sets the initial value after no steps.- Parameters:
baseValue- the initial value- Returns:
- this
Builder
-
setEndLearningRate
Sets the learning rate at which to end rate decay.- Parameters:
endLearningRate- the learning rate at which to end rate decay.- Returns:
- this builder
-
setDecaySteps
Sets the number of training steps to decay learning rate in.- Parameters:
decaySteps- the number of training steps to decay learning rate in- Returns:
- this builder
-
optPower
Sets the power of the polynomial to decay by.- Parameters:
power- the power of the polynomial to decay by.- Returns:
- this builder
-
build
Builds a PolynomialDecayTracker.- Returns:
- a PolynomialDecayTracker
-