【问题标题】:Default hierarchical clustering method in cluster map聚类图中默认的层次聚类方法
【发布时间】:2020-08-27 10:09:20
【问题描述】:

seaborn的clustermap函数中默认使用的层次聚类方法是什么?这些方法是单一的、完整的、平均的、加权的和质心的。另外,默认距离度量是什么?它是标准欧几里得距离吗?我在文档中的任何地方都找不到这个。几个月前我在一些数据上使用了这个函数,由于我没有在聚类映射函数中输入任何特殊参数,因此我需要找出使用的聚类方法。谢谢!

【问题讨论】:

  • 如果你进入Seaborn的源代码,你可能会发现

标签: python seaborn cluster-analysis


【解决方案1】:

来自https://seaborn.pydata.org/generated/seaborn.clustermap.html:

seaborn.clustermap(data, pivot_kws=None, method='average', metric='euclidean', z_score=None, standard_scale=None,...

所以默认情况下它是平均欧几里得

【讨论】:

  • 谢谢!这是我的想法,但想确认。
猜你喜欢
  • 2013-04-02
  • 2020-06-28
  • 2014-06-28
  • 2016-08-07
  • 2013-05-08
  • 2018-10-04
  • 2020-10-22
  • 2016-06-06
  • 1970-01-01
相关资源
最近更新 更多