Last active
December 12, 2015 09:09
-
-
Save taroyabuki/4749496 to your computer and use it in GitHub Desktop.
Bug in FindClusters of Mathematica 8.0.4, 9.0.0, and 9.0.1.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = Import["https://gist.github.com/taroyabuki/4749183/raw/ffc84dbc4a3499ddef4a8c4f689b56c2948225bd/clustering_test_data.csv"]; | |
(* This returns no result *) | |
FindClusters[data, DistanceFunction -> CosineDistance, | |
Method -> {"Agglomerate", "Linkage" -> "Complete"}] | |
(* Shuffled data can be clustered. *) | |
FindClusters[RandomSample@data, DistanceFunction -> CosineDistance, | |
Method -> {"Agglomerate", "Linkage" -> "Complete"}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment