Group Abstract Group Abstract

Message Boards Message Boards

FindClusters versus ClusteringComponents?

Posted 9 years ago

Dear all,

I just found out that there's a difference in the number clusters retrieved when using FindClusters and ClusteringComponents for the same data set, even when completely the same settings are used:

Do[
koppels = RandomReal[{0, 100}, 500];
cl = FindClusters[koppels, DistanceFunction -> EuclideanDistance, Method -> "Optimize"];
indices2 = ClusteringComponents[koppels, Automatic, 1,  DistanceFunction -> EuclideanDistance, Method -> "Optimize"];
Print[{First@Dimensions[cl], Max[indices2]}];, 
{i, 1, 6}]

{2,2}

{2,2}

{1,2}

{2,2}

{1,2}

{1,2}

This shouldn't be the case, because the same clusters should be found either way.

Does someone have an idea of what's going on here?

Thanks for the information!

Jan

POSTED BY: Jan Baetens
4 Replies
POSTED BY: Giorgia Fortuna

And now don't forget about ClusterClassify either ;-)

POSTED BY: Sam Carrettie
Posted 9 years ago

Thanks. This information solved our issue completely!

POSTED BY: Jan Baetens
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard