evCM: Confusion Matrix Calculation Function

Description Usage Arguments Examples

Description

This function calculates a confusion matrix for the provided predicted (in rows) and true (in columns) values. It is also obligatory to provide the actual number of classes. If some of the classes are missed, the function adds the necessary number of zero rows (in case of predictions) or zero columns (in case of true classes) to the classification matrix.

Usage

1
evCM(Ypred, Ytrue, nclasses, CM.print = T, sample.name = "")

Arguments

Ypred

a vector of predicted values.

Ytrue

a vector of actual values.

nclasses

the number of actual classes.

CM.print

a logical argument; whether to print the confusion matrix on the console or not.

sample.name

is an optional character string specifying the name of the sample.

Examples

1
evCM(Ypred, Ytrue)

evgilenko/evStudy documentation built on May 12, 2019, 5:45 a.m.