Я пытаюсь нарисовать полную ссылку scipy.cluster.hierarchy.dendrogram
, и я обнаружил, что scipy.cluster.hierarchy.linkage
медленнее, чем sklearn.AgglomerativeClustering
.
Однако sklearn.AgglomerativeClustering
не возвращает расстояние между кластерами и количество исходных наблюдений, которое требуется scipy.cluster.hierarchy.dendrogram
. Есть ли способ их принять?