a | b/Semantic Features/GetClassSuccessRate.m | ||
---|---|---|---|
1 | function [ classSuccessRate ] = GetClassSuccessRate( classValue, label ) |
||
2 | %GetClassSuccessRate Convert decimals to (integer) classes, get % matching |
||
3 | %the label matrix |
||
4 | |||
5 | classSuccessRate = sum(round(classValue) == round(label))/size(label,1); |
||
6 | |||
7 | end |
||
8 |