python中scipy包中的linkage進行層次聚類

from scipy.cluster.hierarchy import dendrogram, linkage,fcluster from matplotlib import pyplot as plt X = [[i] for i in [2, 8, 0, 4, 1, 9, 9, 0]] #method是指計算類間距離的方法,比較常用的有3種: #single:最近鄰,把類與類間距離最近的作爲
相關文章
相關標籤/搜索