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.declareOpts(cmd) * onmt.Optim(args, optimStates) * onmt.Optim:setOptimStates(num) * onmt.Optim:zeroGrad(gradParams) * onmt.Optim:prepareGrad(gradParams) * onmt.Optim:updateParams(params, gradParams) * onmt.Optim:getLearningRate() * onmt.Optim:getStates()