confusion | R Documentation |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.