전체 글 (20) 썸네일형 리스트형 K-mean clustering, AffinityPropagation K-mean clustering 실습 from sklearn import cluster from sklearn import datasets import matplotlib.pyplot as plt iris = datasets.load_iris() data = iris['data'] #model = cluster.KMeans( n_clusters = 5 ) model = cluster.AffinityPropagation() model.fit(data) print(model.labels_) labels = model.labels_ ldata = data[labels == 0] plt.scatter(ldata[:,2], ldata[:,3], c='black', alpha=0.3, s=100, marker="o.. 강의 슬라이드 전체 (최종) 최종 버전입니다. Numpy, Pandas cheat sheet, 컨닝 페이퍼 수업에 사용한 numpy, pandas cheat sheet 입니다. 이전 1 2 3 4 ··· 7 다음 목록 더보기