<aside> 🟦

What is KNN ( K-Nearest Neighbors ) ?

</aside>

KNN is a supervised algorithm that classifies data based on the "k" nearest data points.

KNN is like asking your neighbors for advice!

<aside> 🟦

How Does KNN Work ?

</aside>

<aside> 🟦

Key Points to Remember

</aside>

<aside> 🟦

How to choose value of “K”

</aside>

1. Start with Odd Values: Use odd values (e.g., 1, 3, 5, etc.) to avoid ties in classification problems.

2. Use the Square Root Rule:

Screenshot 2024-12-30 at 2.59.37 PM.png