Home   >   User Resources   >   Online Help   >   apaClassificationAccuracy
 

 

Function index Version 3.0.0

apaClassificationAccuracy

Excel=apaClassificationAccuracy

Result

Returns the overall classification accuracy from observed and predicted class labels.

Syntax

YObserved: n×1n \times 1vector of observed class labels (1..K).
YPredicted: n×1n \times 1vector of predicted class labels (1..K).

Algorithm

Inputs are validated: non-empty column vectors with the same number of rows.

The accuracy is the fraction of rows where the observed and the predicted class labels are identical.

The accuracy is returned as a scalar between 0 and 1.