Unsupervised Machine Learning: k-Means Clustering and Beyond
1. Introduction to Unsupervised Machine Learning
Unsupervised machine learning deals with unlabeled data. In this exploration, we’ll focus on k - means clustering using the Iris dataset. First, let’s calculate some descriptive statistics for the numerical columns in the Iris dataset.
import pandas as pd
# Assume iris_df is the DataFrame of the Iris dataset
pd.set_option('precision', 2)
print(iris_df.describe())
print(iris_df['species'].describe())
The describe method on the species column shows that there are three unique values, indicating three classes of Iris species. However, in unsupervised learning, we may n
超级会员免费看
订阅专栏 解锁全文

161

被折叠的 条评论
为什么被折叠?



