powered by
Evaluation predictions of a classification model according to kappa.
evaluation.kappa(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.accuracy, evaluation.fmeasure, evaluation.fowlkesmallows, evaluation.goodness, evaluation.jaccard, evaluation.kappa, evaluation.precision, evaluation.precision, evaluation.recall, evaluation
evaluation.accuracy
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.kappa (pred.nb, d$test.y)
Run the code above in your browser using DataLab