Learn How to Build KNN from Scratch in Python π
Discover step-by-step how to implement the K-Nearest Neighbors algorithm from scratch using Python in this beginner-friendly tutorial. Perfect for understanding the fundamentals of machine learning!

AssemblyAI
120.2K views β’ Sep 11, 2022

About this video
In the first lesson of the Machine Learning from Scratch course, we will learn how to implement the K-Nearest Neighbours algorithm. Being one of the simpler ML algorithms, it is a great way to kick off our deep dive into ML algorithms.
You can find the code here: https://github.com/AssemblyAI-Examples/Machine-Learning-From-Scratch
Previous lesson: https://youtu.be/p1hGz0w_OCo
Next lesson: https://youtu.be/ltXSoduiVwY
Welcome to the Machine Learning from Scratch course by AssemblyAI.
Thanks to libraries like Scikit-learn we can use most ML algorithms with a couple of lines of code. But knowing how these algorithms work inside is very important. Implementing them hands-on is a great way to achieve this.
And mostly, they are easier than youβd think to implement.
In this course, we will learn how to implement these 10 algorithms.
We will quickly go through how the algorithms work and then implement them in Python using the help of NumPy.
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬ CONNECT β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
π₯οΈ Website: https://www.assemblyai.com/?utm_source=youtube&utm_medium=referral&utm_campaign=scratch01
π¦ Twitter: https://twitter.com/AssemblyAI
π¦Ύ Discord: https://discord.gg/Cd8MyVJAXd
βΆοΈ Subscribe: https://www.youtube.com/c/AssemblyAI?sub_confirmation=1
π₯ We're hiring! Check our open roles: https://www.assemblyai.com/careers
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
Are KNN and K-means the same thing?
No. KNN is a supervised learning algorithm whereas K-means is a clustering algorithm.
#MachineLearning #DeepLearning
You can find the code here: https://github.com/AssemblyAI-Examples/Machine-Learning-From-Scratch
Previous lesson: https://youtu.be/p1hGz0w_OCo
Next lesson: https://youtu.be/ltXSoduiVwY
Welcome to the Machine Learning from Scratch course by AssemblyAI.
Thanks to libraries like Scikit-learn we can use most ML algorithms with a couple of lines of code. But knowing how these algorithms work inside is very important. Implementing them hands-on is a great way to achieve this.
And mostly, they are easier than youβd think to implement.
In this course, we will learn how to implement these 10 algorithms.
We will quickly go through how the algorithms work and then implement them in Python using the help of NumPy.
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬ CONNECT β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
π₯οΈ Website: https://www.assemblyai.com/?utm_source=youtube&utm_medium=referral&utm_campaign=scratch01
π¦ Twitter: https://twitter.com/AssemblyAI
π¦Ύ Discord: https://discord.gg/Cd8MyVJAXd
βΆοΈ Subscribe: https://www.youtube.com/c/AssemblyAI?sub_confirmation=1
π₯ We're hiring! Check our open roles: https://www.assemblyai.com/careers
β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬β¬
Are KNN and K-means the same thing?
No. KNN is a supervised learning algorithm whereas K-means is a clustering algorithm.
#MachineLearning #DeepLearning
Video Information
Views
120.2K
Likes
2.4K
Duration
9:24
Published
Sep 11, 2022
User Reviews
4.7
(24) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.