getConfusionMatrix.classres function

Confusion matrix for classification results

Confusion matrix for classification results

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.

## 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.

  • Maintainer: Sergey Kucheryavskiy
  • License: MIT + file LICENSE
  • Last published: 2024-08-19