powered by
Evaluation predictions of a classification model according to accuracy.
evaluation.accuracy(predictions, targets, ...)
The predictions of a classification model (factor or vector).
factor
vector
Actual targets of the dataset (factor or vector).
Other parameters.
The evaluation of the predictions (numeric value).
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
# NOT RUN { 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