word2vec-pytorch icon indicating copy to clipboard operation
word2vec-pytorch copied to clipboard

Concerning definition for running_loss

Open phucdoitoan opened this issue 4 years ago • 1 comments

It is not an issue. I just want to ask why do you use running_loss = running_loss*0.9 + loss.item()*0.1 for monitoring the loss during training? Do you have any special reason for this? Isnt it conventional to monitor the average loss after each epoch (in this case, after each iteration)?

phucdoitoan avatar Feb 28 '20 16:02 phucdoitoan

Hi, I've used the moving average because it seemed more useful for me (it forgets the past), but feel free to use anything else.

Andras7 avatar Aug 24 '20 17:08 Andras7