[scikit-learn] Agglomerative clustering

Jitesh Khandelwal jk231092 at gmail.com
Mon Dec 10 00:02:46 EST 2018


Hi everyone,

I am using agglomerative clustering with an L1 distance matrix as input and
the "complete" linkage option.

I want to impose an additional constraint. When 2 clusters are combined and
the cost of combination is equal for multiple cluster pairs, I want to
choose the pair for which the combined cluster has the least size.

What is the cleanest and easiest way of achieving this?

Thanks,
Jitesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20181210/09da18df/attachment.html>


More information about the scikit-learn mailing list