K-Nearest Neighbors (KNN) FROM SCRATCH in Python
Harry Connor AI
0:00 / 0:00
K-Nearest Neighbors (KNN) FROM SCRATCH in Python
8 785 просмотров · 1 год назад
Harry Connor AI
16,5 тыс. подписчиков
8 785 просмотров · 1 год назад
Learn how to implement the K-Nearest Neighbors (KNN) algorithm from scratch in Python using just math and NumPy (no machine learning libraries like Scikit-Learn). I’ll start by explaining the intuition and core math concepts behind KNN, including the euclidian distance and majority voting, and then walk through how to turn this into code.
This is Episode 3 of my Machine Learning From Scratch series, where I’m building ML algorithms from the ground up, step-by-step to truly understand how they work under the hood.
📺 Watch the Playlist Here: • Machine Learning From Scratch
📊 Kaggle Dataset: https://www.kaggle.com/datasets/uciml...
💻 Full Code on GitHub: https://github.com/harryconnor/Machin...
TIMESTAMPS:
00:00 - Introduction
00:22 - PART 1: Intuition & Math
03:26 - PART 2: Coding it up
#machinelearning #python