I've trained 4 classifiers on an undersampled dataset. I plotted the learning curve for each classifier and I got the following results :

enter image description here

I see that for the Log Reg, both curves seem to converge and that adding more data will not help at some point. For the SVC I have no idea (rather than adding more data seems good ! ) for Knn : adding more data will increase both accuracy for Random Forest : I have no idea.

I would love to understand how to read these curves. Thank you very much ! :)


1 Answer 1


In general, the further away the green line is from the red line, the more the model is overfitting, however eventually enough data will cure all overfitting (there will be so much data the model can't possibly memorize all of it), and that's why the lines converge to being together (stops memorizing, red line goes down, starts generalising, green line goes up). Some models need more data to learn than others however, and so as you can see, the LogisticRegression model reaches it's best performance much faster than, for example, the SVC.
An interesting case is the KNN, who's red line doesn't go down, but rather up. I'm pretty sure the reason for this is to do with how the KNN works, it compares instances it knows to classify new instances. Thus, the KNN doesn't really memorize... New instances it can compare with will never hinder it's performance on the training set (red line). However it too will also eventually converge, the lines together.

  • $\begingroup$ Thank you so much for these explanations ! I guess that I cannot really exclude any model by looking at these learning curves right ? $\endgroup$
    – Valentin
    Feb 16, 2021 at 20:12
  • $\begingroup$ No problem! Well, these curves are helpful at seeing if your model is overfitting and how much more data would help that, if you see a model is overfitting (like the random forest for instance), you can try restrain the model more, get more data and/or find more helpful features. So no, you shouldn't really exclude a model by looking at this alone. $\endgroup$
    – MartinM
    Feb 16, 2021 at 20:16
  • $\begingroup$ @MartinM I have some doubts about learning curves. Can you look at this question datascience.stackexchange.com/questions/99930/learning-curves $\endgroup$
    – spectre
    Aug 12, 2021 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.