evaluation.accuracy | R Documentation |
Evaluation predictions of a classification model according to accuracy.
evaluation.accuracy(predictions, gt, ...)
predictions |
The predictions of a classification model ( |
gt |
The ground truth ( |
... |
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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.