Sklearn K-Means Python Example | Interpreting Clustering results

preview_player
Показать описание
I have been using sklearn K-Means algorithm for clustering customer data for years. This algorithm is fairly straightforward to implement. However, interpreting the output is where we need to be very smart.

In this video, we will cover how to write a K-means algorithm and also interpret the results to bring out some business outcomes.

0:0 Introduction to Data
0:59 Clean data and choose variables for clustering
5:30 Sklearn K-Means example code
7: 50 Interpreting clustering results
11:30 Wrapping up

#machineleaning #kmeans #clusterning
Рекомендации по теме
Комментарии
Автор

Want to learn Data Science effectively and show confidence during interviews?
Download the 6 -Step Strategy to master Data Science through now linear methods of learning

KunaalNaik
Автор

Hi! You have explained so easily and with a practical example, thank you very much! I think it is important to show how it uses in reality, not just abstract.

ewidstrom
Автор

Thank you so much. I learned alot and was also able to figure out some of my doubts after watching the video.

jahanvi
Автор

numpy. ndarray object has no attribute cluster centers error. what shall i do

harpreetsandhu
Автор

Sir i have an urgent query please answer🙏
Can i give kmeans prediction value of X matrix to ' y' instead if directy ' y'

model=KMeans(n_clusters=2, random_state=0).fit(X)
y=model.predict(X)

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.4, random_state=0)

akashdeepsinghrana
Автор

Sir, pls make a video on data scrapping

ayushmansahajpal
Автор

Great tutorial! Does it matter which attributes I choose from the original dataset? How should one think? Thanks

tiggenilsson
Автор

Hi! Thank you so much for the above video. I found it incredibly useful and insightful. I just have two questions though:

- Is it possible to cluster customers based on 2 variables (income and sppending score in our case) but still be able to use other variables such as Age to derive more meaningful insights about the clusters?
- Also, how valid and representative of the population would the results of the analysis be?

Thank you in advance :)

hayasultankhan
Автор

Hi, thank you so much for sharing this. really helpful. Do you mind share the data set?

ligrace