Accuracy of classification predictions
Evaluation predictions of a classification model according to accuracy.
evaluation.accuracy(predictions, targets, ...)
predictions |
The predictions of a classification model ( |
targets |
Actual targets of the dataset ( |
... |
Other parameters. |
The evaluation of the predictions (numeric value).
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.