Machine Learning, Artificial Intelligence, Technology, Python, Data Science.
== 2][1], c='red', label='cluster 3') plt.scatter(df[df["labels"] == 3][0], df[df["labels"] == 3][1], c='y', label='cluster 4') plt.scatter(centroids[:, 0], centroids[:, 1], marker='*', s=300, c='black', label='centroid') plt.legend() plt.xlim([-2, 6]) plt.ylim([0, 10]) plt.xlabel('X')