KNN Fit and Predict
easyTask
Train a K-Nearest Neighbors classifier on the iris dataset and make predictions on the test set.
Why It Matters
The fit/predict pattern is the core sklearn API. KNN is intuitive - it classifies based on the majority vote of k nearest neighbors. It's often used as a baseline and works well for small datasets with clear cluster separation.
Instructions
- Examine the setup code and data
- Modify the code to solve the puzzle
- Click Run or press Ctrl+Enter to execute