Description Usage Arguments Examples
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.
1 | evCM(Ypred, Ytrue, nclasses, CM.print = T, sample.name = "")
|
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. |
1 | evCM(Ypred, Ytrue)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.