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
According to this line, https://github.com/koraykv/unsup/blob/master/kmeans.lua#L39L42 because we divide each centroids by its norm, in the case of a number of dimension equal to 1, the centroids will all be initialized to the same value: 1 (or -1).
In my case, that gave strange results where only 2 of the 8 centroids where used in the final results. Initializing the centroid to random points of the given data x worked much better in my case.
The text was updated successfully, but these errors were encountered:
According to this line, https://github.com/koraykv/unsup/blob/master/kmeans.lua#L39L42 because we divide each centroids by its norm, in the case of a number of dimension equal to 1, the centroids will all be initialized to the same value: 1 (or -1).
In my case, that gave strange results where only 2 of the 8 centroids where used in the final results. Initializing the centroid to random points of the given data x worked much better in my case.
The text was updated successfully, but these errors were encountered: