I'm trying to evaluate the number of a dataset, data is described bellow and clust are the results of a clustering algorithm (vector of classes):
eva=evalclusters(data,clust,'CalinskiHarabasz');
Depending on the data input I'm receiving almost all time the error:
Error using clustering.evaluation.ClusterCriterion (line 447)The number of clusters to be evaluated must be different for different clustering solutions.
How can I solve the error? Columns are properties and rows are observations in the data array. Error seems to be in the clust array:
1 2 3 3 4 5 6 7 9 81 2 3 4 5 6 7 8 7 101 1 2 2 2 3 3 4 3 51 1 2 2 2 3 3 4 3 51 1 2 2 3 4 4 5 5 61 1 2 2 2 3 3 4 4 41 1 1 1 1 2 2 2 1 11 1 2 2 2 3 3 4 3 51 2 3 3 4 5 6 7 9 81 1 2 2 2 3 3 4 4 41 2 3 4 5 6 7 8 7 101 1 2 2 3 4 4 5 5 61 2 3 3 4 5 5 6 9 71 2 3 4 5 6 7 8 8 91 1 1 1 1 2 2 2 2 11 1 2 2 3 4 4 5 5 61 2 3 3 4 5 5 6 9 71 1 1 1 1 1 1 1 2 21 2 3 4 5 6 7 8 8 91 1 2 2 3 4 4 5 5 61 1 1 1 1 1 1 1 2 21 2 3 4 5 6 7 8 8 91 1 2 2 3 4 4 5 5 61 1 1 1 1 1 1 3 2 31 2 3 3 4 5 5 6 9 7
Thank you.
Best Answer