Exercise: Find the Best Value for K

Use the elbow method to get the best value of k for the KNN model.

We'll cover the following

Let's practice what we have learned so far.

Task

The task here is to find the best value of kk for the KNN model using the elbow method.

Coding workspace

The provided workspace contains the required libraries and data. Let's try to code the solution for the task mentioned above.

Get hands-on with 1200+ tech skills courses.