Confuion matrix
Plot a confusion matrix.
confusion(predictions, gt, norm = TRUE, graph = TRUE)
predictions |
The prediction. |
gt |
The ground truth. |
norm |
Whether or not the confusion matrix is normalized |
graph |
Whether or not a graphic is displayed. |
The confusion matrix.
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.