[b4b313]: / Semantic Features / GetClassSuccessRate.m

Download this file

9 lines (5 with data), 254 Bytes

1
2
3
4
5
6
7
function [ classSuccessRate ] = GetClassSuccessRate( classValue, label )
%GetClassSuccessRate Convert decimals to (integer) classes, get % matching
%the label matrix
classSuccessRate = sum(round(classValue) == round(label))/size(label,1);
end