Momentum

class Momentum(learningRate: Float, momentum: Float, useNesterov: Boolean, clipGradient: ClipGradientAction) : Optimizer

Improved version of SGD optimizer.

Constructors

Momentum
Link copied to clipboard
fun Momentum(learningRate: Float = 0.001f, momentum: Float = 0.99f, useNesterov: Boolean = true, clipGradient: ClipGradientAction = NoClipGradient())

Properties

clipGradient
Link copied to clipboard
val clipGradient: ClipGradientAction

Strategy of gradient clipping as sub-class of ClipGradientAction.

optimizerName
Link copied to clipboard
open override val optimizerName: String

Returns optimizer name.