2018年10月28日
摘要: import numpy as np from sklearn.datasets import load_iris iris = load_iris() x=iris.data[:,1] y=np.zeros(150) k=3 def initcent(x,k): return x[0:k].reshape(k) def nearest(kc,i):#数组中的值,与聚类中心最小距离所... 阅读全文
posted @ 2018-10-28 10:46 095邓俊威 阅读(487) 评论(0) 推荐(0) 编辑