onmt.Optim

[src]

onmt.Optim:updateLearningRate(score, epoch)

decay learning rate if val perf does not improve or we hit the startDecayAt limit

Undocumented methods

* onmt.Optim(args) * onmt.Optim:zeroGrad(gradParams) * onmt.Optim:prepareGrad(gradParams, maxGradNorm) * onmt.Optim:updateParams(params, gradParams) * onmt.Optim:getLearningRate() * onmt.Optim:getStates()