Skip to contents

This function evaluates the accuracy of a model

Usage

computeConfusionMatrix(mod, X, y, clf)

Arguments

mod:

a model object to be evaluated

X:

dataset to classify

y:

variable to predict

clf:

an object containing the different parameters of the classifier

Value

a confusion matrix