powered by
Computes average classification accuracy.
accuracy( pred, actual, cutoff = NULL, reference = NULL )
a numerical vector of estimated values.
a numerical vector of actual values.
cutoff value for the case that pred is vector of probabilites.
pred
a factor of classes to be used as the true results.
The computed average classification accuracy (numeric value).
conf.mat, mse, mae
conf.mat
mse
mae
# NOT RUN { pred = c( "no", "yes", "yes", "no", "no", "yes", "no", "no" ) actual = c( "yes", "no", "yes", "no", "no", "no", "yes", "yes" ) accuracy( pred, actual ) # }
Run the code above in your browser using DataLab