Last answered:

19 May 2023

Posted on:

12 May 2023


Analysis of Error Rates in K-Nearest Neighbor Function

Dear instructor,

I have a question regarding the figure you provided. Based on the information given, I am uncertain whether this graph refers to an overfitting model.I followed the instructions you provided in the video, but I'm still unsure if the model is overfitting. Could you please clarify this for me?

Thank you.

Mohamed Sherif El-Boraie


1 answers ( 0 marked as helpful)
Posted on:

19 May 2023


Hey Mohamed,

Thank you for reaching out and for your interest in the course!

What I can see is that the values on the y-axis are very small. This means that, essentially, any value of K would make a very good prediction. However, I don't have access to your code and can't tell why you obtain this behavior. Is it possible you've applied the predict() method on the training dataset?

Kind regards,

365 Hristina

Submit an answer