Github user freeman-lab commented on the pull request: https://github.com/apache/spark/pull/5267#issuecomment-98132265 @yu-iskw that makes sense! I do think the linkage matrix / merge list is a general enough data structure for this algorithm that it's definitely worth having as an output, and doesn't actually depend on scipy. The way you had it before is, I think, basically the same thing used in [scipy](http://docs.scipy.org/doc/scipy/reference/generated/scipy.cluster.hierarchy.linkage.html#scipy.cluster.hierarchy.linkage), [R](https://stat.ethz.ch/R-manual/R-patched/library/stats/html/hclust.html), and [matlab](http://www.mathworks.com/help/stats/linkage.html). I would call the method `toLinkageMatrix`, that seems to be the most common name.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org