confusionMatrix.nlcv {nlcv} | R Documentation |
compute a confusion matrix for the optimal number of features for a given technique used in the nested loop cross validation
Description
The observed and predicted classes are cross-tabulated for a given
classification technique used in the nested loop cross validation. The
predicted class that is used to construct the confusion matrix is the class
that was predicted most of the time (>= 50\%
) across all runs
of the nested loop.
Usage
## S3 method for class 'nlcv'
confusionMatrix(x, tech, proportions = TRUE, ...)
Arguments
x |
object for which a confusionMatrix should be produced, e.g. one
produced by the |
tech |
string indicating the classification technique for which the confusion matrix should be returned |
proportions |
logical indicating whether the cells of the matrix should
contain proportions ( |
... |
Dots argument to pass additional parameters to the
|
Value
confusionMatrix
produces an object of class
confusionMatrix
which directly inherits from the ftable
class
(representing the confusion matrix)
Author(s)
Willem Talloen and Tobias Verbeke