powered by
Evaluation predictions of a classification model according to accuracy.
evaluation.accuracy(predictions, gt, ...)
The evaluation of the predictions (numeric value).
The predictions of a classification model (factor or vector).
factor
vector
The ground truth (factor or vector).
Other parameters.
evaluation.fmeasure, evaluation.fowlkesmallows, evaluation.goodness, evaluation.jaccard, evaluation.kappa, evaluation.precision, evaluation.precision, evaluation.recall, evaluation
evaluation.fmeasure
evaluation.fowlkesmallows
evaluation.goodness
evaluation.jaccard
evaluation.kappa
evaluation.precision
evaluation.recall
evaluation
require (datasets) data (iris) d = splitdata (iris, 5) model.nb = NB (d$train.x, d$train.y) pred.nb = predict (model.nb, d$test.x) evaluation.accuracy (pred.nb, d$test.y)
Run the code above in your browser using DataLab