how to group by function if one of the group has relationship with another one in the group?

Ho Yeung Lee jobmattcon at gmail.com
Fri Aug 4 10:35:29 EDT 2017


On Wednesday, August 2, 2017 at 5:25:21 AM UTC+8, Piet van Oostrum wrote:
> Ho Yeung Lee <jobmattcon at gmail.com> writes:
> 
> > which function should be used for this problem?
> >
> I think it is a kind if clustering, or a connectivity problem. There are special algorithms for that, not just a simple function. Maybe scikit-learn has a suitable algorithm for it.
> -- 
> Piet van Oostrum <piet-l at vanoostrum.org>
> WWW: http://piet.vanoostrum.org/
> PGP key: [8DAE142BE17999C4]


i use number of clusters = 120

https://gist.github.com/hoyeunglee/2475391ad554e3d2b2a40ec24ab47940
https://drive.google.com/file/d/0Bxs_ao6uuBDUZFByNVgzd0Jrdm8/view?usp=sharing

seems better, but still has a long distance to be perfect
is there any more that can do for perfect



More information about the Python-list mailing list