Answer-1:
Really a fundamental question in machine learning.
If validation loss >> training loss you can call it overfitting.
If validation loss > training loss you can call it some overfitting.
If validation loss < training loss you can call it some underfitting.
If validation loss << training loss you can call it underfitting.
Your aim is to make the validation loss as low as possible. Some overfitting is nearly always a good thing. All that matters in the end is: is the validation loss as low as you can get it.
This often occurs when the training loss is quite a bit lower.
Also check how to prevent overfitting.
-----------------------------------------------------------------------------------------------------------------
Answer-2:
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
本文探讨了机器学习中训练损失与验证损失的关系,区分了过拟合、欠拟合和理想情况。关键点在于降低验证损失,同时注意防止过度拟合。讲解了三种情况:训练损失略高于验证损失可能表示欠拟合,显著低于则为过拟合,两者接近且收敛表示模型适中。
https://stackoverflow.com/questions/48226086/training-loss-and-validation-loss-in-deep-learning
4383

被折叠的 条评论
为什么被折叠?



