NAG class

Implements Nesterov Accelerated Gradient (NAG) optimization. Incorporates momentum by computing the parameter update step using a look-ahead velocity term.

Inheritance

Constructors

NAG(List<Tensor> parameters, {required double learningRate, double momentum = 0.9})
Creates a NAG optimizer for parameters with the given learningRate and momentum factor.

Properties

hashCode → int
The hash code for this object.
no setterinherited
learningRate ↔ double
The step size factor applied during parameter updates.
getter/setter pairinherited
momentum ↔ double
The momentum factor determining the contribution of past update velocities.
getter/setter pair
parameters ↔ List<Tensor>
The collection of trainable parameter tensors managed by this optimizer.
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
step() → void
Performs a single optimization step using the Nesterov momentum update rule.
override
toString() → String
A string representation of this object.
inherited
zeroGrad() → void
Clears gradients by resetting the gradient buffer of every managed tensor in parameters to 0.0.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited