Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
K-Nearest Neighbors (KNN) FROM SCRATCH in Python
Play lesson

Machine Learning From Scratch - K-Nearest Neighbors (KNN) FROM SCRATCH in Python

5.0 (0)
18 learners

What you'll learn

This course includes

  • 1 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Full Transcript

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: https://www.youtube.com/playlist?list=PLh6JMkwECi5HXVJ58ue58jJvL599NFYja 📊 Kaggle Dataset: https://www.kaggle.com/datasets/uciml/breast-cancer-wisconsin-data 💻 Full Code on GitHub: https://github.com/harryconnor/Machine-Learning-From-Scratch TIMESTAMPS: 00:00 - Introduction 00:22 - PART 1: Intuition & Math 03:26 - PART 2: Coding it up #machinelearning #python

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere