<jupyter_start><jupyter_text>K-Means<jupyter_code># from sklearn.cluster import Kmeans
from sklearn.cluster import KMeans
kmeans = KMeans(n_clusters=3, random_state=0)
kmeans.fit(X)
kmeans.labels_<jupyter_output><empty_output><jupyter_text>Comparando classes criadas com classes existentes de iris<jupyter_code>df['K-classes'] = kmeans.labels_
df
sb.pairplot(df,hue='target')
sb.pairplot(df,'K-classes')<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup