apaClassificationAccuracy
Excel
=apaClassificationAccuracyResult
Returns the overall classification accuracy from observed and predicted class labels.
Syntax
YObserved:
vector
of observed class labels (1..K).
YPredicted:
vector
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.
