evaluation metric for binary and multiclass classification

acc(y_true, preds)

Arguments

y_true

a numeric vector specifying the response variable

preds

a numeric vector specifying the predictions