How to know if my model is overfitting or underfitting?

How to know if my model is underfitting or overfitting? Is there a way to spot it looking at the training and test losses ( numerical values or graphs) or any other methods?

Hi, If the model is overfitting,
Training loss << validation loss and the we can say a model has overfitted when the training loss starts to decrease wheras validation loss starts to increase

If the model is underfitting,
Training loss and validation loss will be both high.!

Here is a great link

1 Like