Machine Learning, Unsupervised Learning, Clustering, K Means.
kmeans.fit(df) score = silhouette_score(df, kmeans.labels_) scores.append(score) # Plot the silhouette scores import matplotlib.pyplot as plt plt.plot(range(2, 11), scores) plt.xlabel('Number of clusters') plt.ylabel('Silhouette score') plt.show() The silhouette score is a measure of how similar an