kumulant

AdagradOptimizer

class AdagradOptimizer(val featureSize: Int, val learningRate: ScalarExpr, val epsilon: Double = 1.0E-10, concurrency: Concurrency = Concurrency.None) : Optimizer(source)

Adagrad: accumulates squared gradients per coordinate; the effective per-coord learning rate is lr / sqrt(sumG2[i] + epsilon). Adapts faster on rare features.

Constructors

Link copied to clipboard
constructor(featureSize: Int, learningRate: ScalarExpr, epsilon: Double = 1.0E-10, concurrency: Concurrency = Concurrency.None)

Properties

Link copied to clipboard

Numerical-stability epsilon added under the square root.

Link copied to clipboard
open override val featureSize: Int

Number of weight coordinates this optimizer manages.

Link copied to clipboard

Base learning-rate schedule.

Functions

Link copied to clipboard
open override fun advance()

Advance per-update counters (Adam step t, etc.). Called once per stat update.

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].

Link copied to clipboard
open override fun reset()

Reset all internal state to its initial values.

AdagradOptimizer

constructor(featureSize: Int, learningRate: ScalarExpr, epsilon: Double = 1.0E-10, concurrency: Concurrency = Concurrency.None)(source)

advance

open override fun advance()(source)

Advance per-update counters (Adam step t, etc.). Called once per stat update.

computeDelta

open override fun computeDelta(coordIndex: Int, gradient: Double, observationWeight: Double): Double(source)

Per-coordinate update. Reads/writes any auxiliary state owned by the optimizer, then returns the delta the caller should add to w[coordIndex].

epsilon

Numerical-stability epsilon added under the square root.

featureSize

open override val featureSize: Int(source)

Number of weight coordinates this optimizer manages.

learningRate

Base learning-rate schedule.

reset

open override fun reset()(source)

Reset all internal state to its initial values.