Clustering is a really important class of algorithms in machine learning. In this video, I show you how to implement K-means from scratch in Python. If you would like to check out the code, you can find that here:
https://github.com/ssundar6087/Machin...
Video Chapters
0:00 Intro
0:18 Preliminaries
4:06 Outline
5:03 Centroid Initialization
7:47 Assign points to clusters
12:06 Feature Scaling
18:21 Update Centroids
19:45 Putting Everything Together
22:52 Inertia Score
24:21 Model.fit()
26:55 Running our model
28:26 The Elbow Rule
31:09 Comparison with Sklearn
32:53 Outro