hhundiwala / hierarchical-clustering

This is python implementation of hierarchical cluste
15 stars 8 forks source link

Consistent Point Colors #1

Open oliviaviparina opened 6 years ago

oliviaviparina commented 6 years ago

Thanks for the great overview, this was extremely helpful. I am trying to cluster about 20 data points and have added enough colors for each to have their "own" color in the beginning (although some of the shades are similar, its not too important). One problem I am running into is my output graphs for

hierarchical_clustering(data,"single",20) hierarchical_clustering(data,"single",19)

do not keep the colors consistent for each point (i.e. one outlier is pink the first graph, does not get clustered to another data point, and then is blue the next graph)

Is there any way I can make the colors assigned to each data point carry over from each graph?

Thanks!

Vivek-nk commented 5 years ago

Thanks alot. It was helpful to have a look at your code. I have one doubt, can you help me define :- 'cal_dist_from_centroid', am not finding it in your code. Any help would be greatly appreciated.

thanks in advance !

mspatke commented 2 years ago

Hi Harsh,

Thank you for your code, Can you please explain cal_dist_from_centroid function. I can't see any code for it. your comment would be appreciated.