Interpreting the output of SciPy's hierarchical clustering dendrogram? (maybe found a bug…)

末鹿安然 提交于 2019-12-06 04:10:18

icoord, dcoord and color_list describe the links, not the leaves. icoord and dcoord give the coordinates of the "arches" (i.e. upside-down U or J shapes) for each link in a plot, and color_list is the color of those arches. In a full plot, the length of icoord, etc., will be one less than the length of ivl, as you have observed.

Don't try to line up the ivl list with the icoord, dcoord and color_list lists. They are associated with different things.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!