R/confusion_matrix.R
accuracy.Rd
This function provides the overall accuracy rate for the two vectors.
accuracy(observed, predicted)
vector of observed values.
vector of predicted values.
the accuracy as a numeric value.