Idris2Doc : NN.Optimisers.Instances

NN.Optimisers.Instances

(source)

Definitions

GD : NegpType=> {automon : ComMonoidpType} ->FromDoublepType=> {default0.001_ : pType} ->Optimiser (ConstpType) ()
  Gradient descent optimiser. Has trivial state
@lr is the learning rate

Totality: total
Visibility: public export
GA : NegpType=> {automon : ComMonoidpType} ->FromDoublepType=> {default0.001_ : pType} ->Optimiser (ConstpType) ()
  Gradient ascent optimiser. Has trivial state
@lr is the learning rate

Totality: total
Visibility: public export
momentumUpdate : NegpType=>pType->pType->pType->pType-> (pType, pType)
Totality: total
Visibility: public export
lookAhead : NumpType=>pType->pType->pType->pType
Totality: total
Visibility: public export
GDMomentum : NegpType=> {automon : ComMonoidpType} ->FromDoublepType=> {defaultFalse_ : Bool} -> {default0.001_ : pType} -> {default0.9_ : pType} ->Optimiser (ConstpType) pType
  Gradient Descent with momentum, optionally with Nesterov acceleration

Totality: total
Visibility: public export
adamUpdate : NegpType=>FractionalpType=>SqrtpType=>FromDoublepType=>MaterialisepType=>Double->Double->pType->pType->pType->pType->Double->Double->pType-> (pType, (pType, (pType, (Double, Double))))
  Adam step. The moments are parameter-shaped; the bias-correction powers
beta^t are the same scalar at every coordinate, so they are `Double`

Totality: total
Visibility: public export
Adam : NegpType=> {automon : ComMonoidpType} ->FromDoublepType=>MaterialisepType=>FractionalpType=>SqrtpType=> {default0.001_ : pType} -> {default0.9_ : Double} -> {default0.999_ : Double} -> {default1e-8_ : pType} ->Optimiser (ConstpType) (pType, (pType, (Double, Double)))
  Adam optimiser (Kingma & Ba, 2014)
State: the two moments and the two scalar bias-correction powers
@lr is the learning rate
@beta1 is the exponential decay rate for the first moment estimate
@beta2 is the exponential decay rate for the second moment estimate
@epsilon is a small constant for numerical stability

Totality: total
Visibility: public export