Description Usage Arguments Details Value Author(s) Examples
This is a function to compute the confusion matrix based on k fold cross validation
1 | confusion.matrix(object, x, k=10)
|
object |
is a nb object. |
x |
is the dataset |
k |
number of folds |
It is only allowed k=5 or k=10.
The output is the a object of class matrix
that represents the confusion matrix
Renato Rodrigues Silva, renato.rrsilva@ufg.br
1 2 3 | data(seeds)
mod = naive.bayes(x=seeds, ct="varieties")
confusion.matrix(mod,x=seeds,k=10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.