摘要:
import numpy as np from sklearn.datasets import load_iris iris=load_iris() x=iris.data[:,1] y=np.zeros(150) def initcent(x,k): #初始聚类中心数组 return x[0:k].reshape(k) def nearest(kc,i): #数组中的值,... 阅读全文
posted @ 2018-10-25 16:22
zhongwolin
阅读(1181)
评论(0)
推荐(0)

浙公网安备 33010602011771号