SgdOptimizer
class SgdOptimizer(val featureSize: Int, val learningRate: ScalarExpr, concurrency: Concurrency = Concurrency.None) : Optimizer(source)
Plain SGD: delta = -learningRate(step) * weight * gradient. Stateless apart from the global step counter feeding the schedule.
Constructors
Link copied to clipboard
constructor(featureSize: Int, learningRate: ScalarExpr, concurrency: Concurrency = Concurrency.None)
Properties
Functions
Link copied to clipboard
open override fun computeDelta(coordIndex: Int, gradient: Double, observationWeight: Double): Double
Per-coordinate update. Reads/writes any auxiliary state owned by the optimizer, then returns the delta the caller should add to w[coordIndex].
SgdOptimizer
constructor(featureSize: Int, learningRate: ScalarExpr, concurrency: Concurrency = Concurrency.None)(source)
advance
computeDelta
featureSize
Number of weight coordinates this optimizer manages.
learningRate
Per-step learning-rate schedule.