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:最近邻,把类与类间距离最近的作为
相关文章
相关标签/搜索