Training Loss and Validation Loss in Deep Learning

后端 未结 3 1731
时光取名叫无心
时光取名叫无心 2021-02-03 15:10

Would you please guide me how to interpret the following results?

1) loss < validation_loss 2) loss > validation_loss

It seems that the training loss always s

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-03 15:56

    In machine learning and deep learning there are basically three cases

    1) Underfitting

    This is the only case where loss > validation_loss, but only slightly, if loss is far higher than validation_loss, please post your code and data so that we can have a look at

    2) Overfitting

    loss << validation_loss

    This means that your model is fitting very nicely the training data but not at all the validation data, in other words it's not generalizing correctly to unseen data

    3) Perfect fitting

    loss == validation_loss

    If both values end up to be roughly the same and also if the values are converging (plot the loss over time) then chances are very high that you are doing it right

提交回复
热议问题