K-Means Clustering From Scratch in Python (Mathematical)

preview_player
Показать описание
In this video we implement K-Means clustering from scratch. We look at the theory and the mathematics behind it and then we use NumPy to put it into code.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

💼 Services 💼

🌐 Social Media & Contact 🌐

Timestamps:
(0:00) Intro
(0:17) Theory & Math Background
(7:21) Coding K-Means From Scratch
(32:37) Outro
Рекомендации по теме
Комментарии
Автор

this is great, thank you. it feels good to understand something and be a little closer to understanding machine learning or how to use it properly.

pitaeata
Автор

I take random points from my data as initial centroids, less computations since you only need the set a random integers for indices.

Larzsolice
Автор

Hi, thanks for your comprehensive explanation.
I want to use cosine distance as metric instead of Euclidean distance. could you please guide me?
shoud we just change the part of code which calcaulates Euclidean distance or also other changes need?

rezaaminafshar
Автор

your explanation is great. but i want to ask, what if we want to know what data is move to different cluster. like at first the data is in 0 cluster but then after that it's move to the other group. how do we know the number of data that is move to another cluster?

SeziManuhutu
Автор

Beautiful Video!
If I plan to reuse this code, is this code licensed by you (or anybody else)?. If I reuse it I will post a link to this video but I wanted to be on the safer side!

neevpenkar
Автор

It's a great tutorial. Beside everything, I just didn't understand why and how it was assumed to have 3 centroids for the example dataset where as you assumed the dataset has no label (unsupervised). Appreciate if you can elaborate. Thanks,

bijayamanandhar
Автор

Hello, I had a question, I wanted to know if I want to work in machine learning or data science, I must use Anaconda and Jumper Lab or can I use Pycharm? I asked this question to many people and they said I should work in Jupyter Lab I can't get along with its environment. I can work inside pycharm or vscode. Your answer can help me a lot. Thank you

Ali.
Автор

I want a python code to convert handwritten image into plain text with accurate i have tried buti didnt got you can try it and show it me sir and plz respond to this comment bcz i am searching for this very curiosly...

aravindputtapaka
Автор

hi i am getting this error can you tell how to solve it


ValueError: 'c' argument has 200 elements, which is inconsistent with 'x' and 'y' with size 100.

slsushanth