You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
even with 2d circles data like in the Max helpfile, we get only 2 labels used in the end. Is there a bug in the code, or in my expectations of what it should do (4 slices of data)
Kmeans does return 4 clusters as requested. @g-roma can you look and see if it behaves how you understand the algo ?
The text was updated successfully, but these errors were encountered:
I can't check the Max help file, does it also happen in SC? Swapping SKMeans in the KMeans help file code works as expected for me: 4 clusters, but based on angle. In some runs you may end up with an empty cluster.
The data in circles.json does not really have 4 clusters in the angular direction, so I would not expect the algorithm to find them. The code below generates a set of points clustered by angle. The algorithm may still fail due to random initialization (especially with smaller datasets), but most of the time it finds them (substitute in the FluidKMeans help file).
~points = (4.collect{|i|
128.collect{
var angle = 0.1.rand + (i * pi / 2);
var r = 1.0.rand;
[r* angle.cos, r * angle.sin]
}}).flatten(1);
even with 2d circles data like in the Max helpfile, we get only 2 labels used in the end. Is there a bug in the code, or in my expectations of what it should do (4 slices of data)
Kmeans does return 4 clusters as requested. @g-roma can you look and see if it behaves how you understand the algo ?
The text was updated successfully, but these errors were encountered: