How to implement KNN from scratch with Python

Published: 11 September 2022
on channel: AssemblyAI
89,381
1.8k

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-Example...

Previous lesson:    • Machine Learning From Scratch Full co...  
Next lesson:    • How to implement Linear Regression fr...  

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_sourc...
🐦 Twitter:   / assemblyai  
🦾 Discord:   / discord  
▶️ Subscribe: https://www.youtube.com/c/AssemblyAI?...
🔥 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


Watch video How to implement KNN from scratch with Python online without registration, duration hours minute second in high quality. This video was added by user AssemblyAI 11 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 89,381 once and liked it 1.8 thousand people.