In train.py
line 246, we have
# update the learning rate
optim.updateLearningRate(valid_loss, epoch)
However, in onmt/Optim.py
, inside function updateLearningRate()
at line 37, we have:
def updateLearningRate(self, ppl, epoch):
...
self.last_ppl = ppl
Why use valid_loss
in the place of ppl
for updateLearningRate()
?
Aren't valid_loss
and ppl
different measures?
Could anyone help me here, Thanks!