Analysis of Error Rates in K-Nearest Neighbor Function
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?
Mohamed Sherif El-Boraie
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?