Measure percentage of Accuracy and the Rand index of clustering results
The number of class must equal to the number cluster
Acc = Accuracy of clustering results
rand_index = Rand's Index, measure an agreement of the clustering results
match = 2xk matrix which are the best match of the Target and clustering results
T = 1xn target index
idx =1xn matrix of the clustering results
@roslan armina, replace Acc_measure with AccMeasure will work. It's my fault for the example code in the description. It's fixed now.
@Pedro, thank you for pointing out. It's fixed now.
when i use your example, this error come out Undefined function or method 'Acc_measure' for input arguments of type 'double'.
how to solve it? thanks
there is a bug in your code since AccMeasure([1 1 1],[2 2 1]) and AccMeasure([2 2 2],[1 1 2]) give different accuracies
1. Bug fix.
correct the example code
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.