Machine Learning Course - Lesson 4: Nearest Neighbor Classifier (JavaScript - No Libraries) @Radu
Machine Learning Course - Lesson 4: Nearest Neighbor Classifier (JavaScript - No Libraries)  @Radu
Uploaded February 2023 | Updated September 2026, 2 weeks ago
The simplest machine learning method I can think of is the nearest neighbor classifier. I’ll show you how to implement it in JavaScript and use it for drawing recognition. We’ll add our sketch-pad component to the data visualizer and extract features from it in real-time. I’ll also teach you how to visualize the classification process on the chart.

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

⭐️HOMEWORK⭐️
Try to account for rotation when computing the width and height. Share screenshots and your code on my Discord server:
discord.com/invite/gJFcF5XVn9

Draw for me :-) I will use your data in the future:
Call for help video: youtu.be/Yw2QZ1vq2ek
Data collection tool: radufromfinland.com/projects/ml

⭐️LINKS⭐️

📁 Data
github.com/gniziemazity/drawing-data

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


⭐️TIMESTAMPS⭐️
00:00 Introduction
01:19 Adding the Sketchpad Component
06:10 Extracting Features from Sketchpad
10:44 Showing new Features on the Chart
16:46 Better Features
22:11 Problems with Data
26:22 Nearest Neighbor
37:39 Misleading Chart
Machine Learning Course - Lesson 4: Nearest Neighbor Classifier (JavaScript - No Libraries)Beginner JavaScript ProjectDecode the Drawings ⭐ COMPETITION RESULTS ⭐Creative Coding Competition ⭐RESULTS⭐JavaScript Beginner Project Tutorial: The Ebbinghaus IllusionAdvanced Drawing App | LIVE JavaScript Coding | Part 5: Refactoring Tools, Main and ViewportHow to Fake data in AppsAugmented Reality Piano with DIY haptic gloves in vanilla JavaScriptA Virtual World - JavaScript Course: Final Lesson [Coding a MiniMap with JavaScript]Advanced Sorting Visualizer with JavaScriptDistance without Pythagoras 🤯 ?Scintillating Grid Optical Illusion using JavaScript
Radu Mariescu-Istodor |

Machine Learning Course - Lesson 4: Nearest Neighbor Classifier (JavaScript - No Libraries)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER