Python Bytes - Machine Learning K Means Part 7 Plot New Cluster Data Matplotlib Code in Description

preview_player
Показать описание
#Coded by Andrew C
import pandas as pd
from sklearn import datasets

X = wine[['alcohol', 'total_phenols']]

scale = StandardScaler()

import numpy as numpy

kmeans = KMeans(n_clusters=3)

n = ['0','1','2']

X_new_scaled[:,1], marker="*",
c= 'red')

X_scaled[:,1],
c= y_pred)

marker="o",
s = 250,
c = [0,1,2],
edgecolors='k')

for i, txt in enumerate(n):

#datascience #python #coding
Рекомендации по теме
Комментарии
Автор

bro I’ve been watching your shorts if you learning python so damn fast, making me jealous

aidan-