getConfusionMatrix.classres | R Documentation |
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, ...)
obj |
classification results (object of class |
ncomp |
number of components to make the matrix for (NULL - use selected for a model). |
... |
other arguments |
Returns confusion matrix for classification results represented by the object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.