Machine Learning Course - Lesson 9: KNN Classifier with Python and Scikit-learn @Radu
Machine Learning Course - Lesson 9: KNN Classifier with Python and Scikit-learn  @Radu
Uploaded April 2023 | Updated September 2026, 2 weeks ago
In this video I'll show you how to train and evaluate a K Nearest Neighbor (KNN) Classifier using Python and the Scikit-learn library. We essentially do the same things we implemented from scratch during this course, using Python and sklearn in the way people typically do when doing Machine Learning.

The Course: youtube.com/playlist?list=PLB0Tybl0UNfYe9aJXfWw-Dw_4VnFrqRC4

⭐️HOMEWORK⭐️
Install matplotlib and use it to display the feature values. Customize it to look the way you want and show me what you come up with! Can you make it display the decision boundary as well? (Hint: look inside the sklearn.inspection module). Share your code on my Discord:
discord.com/invite/gJFcF5XVn9
I'll showcase my favorites in a future video.

⭐️LINKS⭐️

📁 Data
github.com/gniziemazity/drawing-data

💻 Code
tps://github.com/gniziemazity/ml-course
✔️ Use P8 to follow along
✔️ P9 is the code after this lesson


Python download link:
python.org

How to setup VS Code to use Python:
code.visualstudio.com/docs/languages/python

Scikit-learn library:
scikit-learn.org


⭐️TIMESTAMPS⭐️
00:00 Introduction
00:48 Converting the data into CSV
04:27 Reading a file using Python
05:35 Separating the feature values from the labels
08:52 K Nearest Neighbor using Scikit-learn
10:39 Reading the testing data and evaluating the classifier
11:27 Homework (Python)
Machine Learning Course - Lesson 9: KNN Classifier with Python and Scikit-learnBad Apple!! But it’s a JavaScript TutorialDistance from Point to Segment Explained using JavaScriptDetecting Colored Markers with JavaScript [Understanding AI - Lesson 13 / 15]Why It Took Me 2 Years to Make This Course🎃 Coding a Theremin in JavaScript (#JSVFX) 🎃JavaScript 🟢 Christmas Calendar 📅 Day 21 🎄Bad Apple - JavaScript Static 🏆COMPETITION RESULTS 🏆A Virtual World - JavaScript Course: Lesson 7 / 11 [Road Marking Editor with JavaScript]Machine Learning Course - Lesson 8: Decision Boundaries in JavaScriptCan You Draw Yellow with Red and Green Pixels?Procedural Bag Generator with HTML, CSS, and JavaScript | Coding on Turkish Airlines
Radu Mariescu-Istodor |

Machine Learning Course - Lesson 9: KNN Classifier with Python and Scikit-learn

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER