R/metapredict_confusion.R
calcConfusionValidation.RdCalculate confusion matrices based on predictions for validation datasets.
calcConfusionValidation( predsList, lambda, sampleMetadata, className = "class", classLevels = NA, each = TRUE )
| predsList | list of predictions from |
|---|---|
| lambda | value of lambda at which to use predictions. |
| sampleMetadata | data.frame of sample metadata. |
| className | name of column in |
| classLevels | Order of classes in the confusion matrix. If |
| each | logical indicating whether to calculate a confusion matrix for each validation dataset (default) or one confusion matrix including all datasets. |
If isTRUE(each), a list of objects of class table. Otherwise, an
object of class table.