Skip to contents

This function computes prediction scores based on the confusion matrix such as accuracy, precision, recall and f-score

Usage

evaluateAdditionnalMetrics(mod, X, y, clf, mode = "train")

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

mode:

training or testing mode

Value

a model whose evaluation parameters are updated