public static final class CosineTracker.Builder
extends java.lang.Object
CosineTracker
object.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CosineTracker |
build()
Builds a
CosineTracker block. |
CosineTracker.Builder |
optFinalValue(float finalValue)
Sets the final value that the learning rate will remain constant as after the specified
max number of updates.
|
CosineTracker.Builder |
setBaseValue(float baseValue)
Sets the initial value after no steps.
|
CosineTracker.Builder |
setMaxUpdates(int maxUpdates)
Sets the maximum number of updates after which the value should remain constant.
|
public CosineTracker.Builder setBaseValue(float baseValue)
baseValue
- the initial valueBuilder
public CosineTracker.Builder optFinalValue(float finalValue)
finalValue
- the final valueBuilder
public CosineTracker.Builder setMaxUpdates(int maxUpdates)
maxUpdates
- the maximum number of updates after which the value should remain
constantBuilder
public CosineTracker build()
CosineTracker
block.CosineTracker
block