Can someone tell me if my machine learning model is overfitting or not ?

I hope you are doing well , I m working on a machine learning project and I just plotted the confusion matrix
9 Replies
pemcilwarrior12
pemcilwarrior129mo ago
attachment 0
pemcilwarrior12
pemcilwarrior129mo ago
Can someone tell me if my model is overfitting or not ?
wafa_athmani
wafa_athmani9mo ago
the model performs well for some classes but doesn't with others and that is a sign of overfitting
pemcilwarrior12
pemcilwarrior129mo ago
What are the classes that have overfitting if you can help ?
wafa_athmani
wafa_athmani9mo ago
'e' 'd' 'm' 'n' 'o' 'p' 'q' 'r's' 't' 'u' 'v' 'w' 'x' 'y' 'z' 'you' 'bad 'fine' 'hungry' 'sorry' 'thankyou' 'deaf' 'me' 'please' 'goodbye', 'no' , the diagonal values are relatively low
pemcilwarrior12
pemcilwarrior129mo ago
But these have a value of 98% , how they can be overfitted ?
wafa_athmani
wafa_athmani9mo ago
the diagonal values (representing correct classifications) are relatively low compared to the off-diagonal values (misclassifications). This suggests that the model struggles to accurately classify instances belonging to these classes.
techielew
techielew9mo ago
@anniekeerdekens
anniekeerdekens
anniekeerdekens9mo ago
It is difficult to determine only on the confusion matrix if your model is overfitting. What data is the confusion matrix representing? Only your validation data? Is the validation data unseen? How did you split the data? Is the data balanced? I suggest you first have a look at your loss curves. Check out this article: https://towardsdatascience.com/learning-curve-to-identify-overfitting-underfitting-problems-133177f38df5.
Medium

Did you find this page helpful?