2
Scipy
계층 적 클러스터링을 사용하여 다음과 같은 방식으로 클러스터되는 많은 데이터 요소가 있습니다. 내가 '1500'레벨에서 덴도 그램을 제거하고 싶다고합시다. 그렇게하는 방법? 모든 하위 다음, 클러스터 노드가 color_threshold
미만인 경우, the scipy documentation에 지정된대로Scipy 계층 적 클러스터링의 수준에서 프래 밍 dendrogram
Z = dendrogram(linkage_matrix,
truncate_mode='lastp',
color_threshold=1,
labels=df.session.tolist(),
distance_sort='ascending')
plt.title("Hierachical Clustering")
plt.show()