在train.py
第 246 行,我们有
# update the learning rate
optim.updateLearningRate(valid_loss, epoch)
但是,在第 37 行onmt/Optim.py
的内部函数updateLearningRate()
中,我们有:
def updateLearningRate(self, ppl, epoch):
...
self.last_ppl = ppl
为什么用forvalid_loss
代替?ppl
updateLearningRate()
不是valid_loss
和ppl
不同的措施吗?
有人可以在这里帮助我吗,谢谢!