powered by
Plot a confusion matrix.
confusion(predictions, gt, norm = TRUE, graph = TRUE)
The confusion matrix.
The prediction.
The ground truth.
Whether or not the confusion matrix is normalized
Whether or not a graphic is displayed.
evaluation, performance, splitdata
evaluation
performance
splitdata
require ("datasets") data (iris) d = splitdata (iris, 5) model = NB (d$train.x, d$train.y) pred = predict (model, d$test.x) confusion (d$test.y, pred)
Run the code above in your browser using DataLab