Class: DNN::Optimizers::Nesterov

Inherits:
SGD show all
Defined in:
lib/dnn/core/optimizers.rb

Instance Attribute Summary

Attributes inherited from SGD

#lr, #momentum

Attributes inherited from Optimizer

#clip_norm, #status

Instance Method Summary collapse

Methods inherited from SGD

#load_hash, #to_hash

Methods inherited from Optimizer

from_hash, #load_hash, #to_hash, #update, #update_layers

Constructor Details

#initialize(lr: 0.01, momentum: 0.9, clip_norm: nil) ⇒ Nesterov

Returns a new instance of Nesterov.



100
101
102
# File 'lib/dnn/core/optimizers.rb', line 100

def initialize(lr: 0.01, momentum: 0.9, clip_norm: nil)
  super(lr: lr, momentum: momentum, clip_norm: clip_norm)
end