confusion.matrix: Confusion matrix based on k fold cross validation

Description Usage Arguments Details Value Author(s) Examples

Description

This is a function to compute the confusion matrix based on k fold cross validation

Usage

1
confusion.matrix(object, x, k=10)

Arguments

object

is a nb object.

x

is the dataset

k

number of folds

Details

It is only allowed k=5 or k=10.

Value

The output is the a object of class matrix that represents the confusion matrix

Author(s)

Renato Rodrigues Silva, renato.rrsilva@ufg.br

Examples

1
2
3
data(seeds)
mod = naive.bayes(x=seeds, ct="varieties")
confusion.matrix(mod,x=seeds,k=10)

renatorrsilva/nb documentation built on May 30, 2019, 6:14 p.m.