Как построить центроиды Kmeans
#assuming we trained and saved the model in 'kmean_model' obj
predict = kmean_model.predict(df)
plt.scatter(df.iloc[:,2],df.iloc[:,3],c = predict,cmap = 'viridis')
plt.scatter(kmean_model.cluster_centers_[:,2],kmean_model.cluster_centers_[:,3],c='red',marker = 'x')
Muhammad Usman Shakeel