Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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')
 
PREVIOUS NEXT
Tagged: #plot #single #cluster
ADD COMMENT
Topic
Name
8+8 =