getConfusionMatrix.classres: Confusion matrix for classification results

View source: R/classres.R

getConfusionMatrix.classresR Documentation

Confusion matrix for classification results

Description

The columns of the matrix correspond to classification results, rows - to the real classes. In case of soft classification with multiple classes (e.g. SIMCAM) sum of values for every row will not correspond to the total number of class members as the same object can be classified as a member of several classes or non of them.

Usage

## S3 method for class 'classres'
getConfusionMatrix(obj, ncomp = obj$ncomp.selected, ...)

Arguments

obj

classification results (object of class simcares, simcamres, etc)

ncomp

number of components to make the matrix for (NULL - use selected for a model).

...

other arguments

Details

Returns confusion matrix for classification results represented by the object.


svkucheryavski/mdatools documentation built on Aug. 25, 2023, 12:27 p.m.