AuroreAA / ICSClust

What the Package Does in One 'Title Case' Line
GNU General Public License v3.0
0 stars 0 forks source link

Bug in ICSClust with `var_crit` #12

Closed VLDrenth closed 1 year ago

VLDrenth commented 1 year ago

The below code produces the following error that should not occur: Error in kmeans(x = df, centers = k, iter.max = iter.max, nstart = nstart, : more cluster centers than distinct data points.

X <- iris[,1:4]

out <- ICSClust(X, nb_clusters = 2, criterion = "var_crit")
AuroreAA commented 1 year ago
  1. change the warning in var_crit to error
  2. check in ICSClust what happen if no components are selected