Answers for "how to plot a single cluster"

0

how to plot a single cluster

df['target'] = kmean_model.predict(df)
#plotting the first cluster
plt.scatter(df[df['target']==1].iloc[:,0],df[df['target']==1].iloc[:,1],cmap = 'viridis')
Posted by: Guest on April-18-2022

Code answers related to "how to plot a single cluster"

Python Answers by Framework

Browse Popular Code Answers by Language