mlPredictCM: Caret confusion matrix

View source: R/machineLearning.R

mlPredictCMR Documentation

Caret confusion matrix

Description

Calculates the caret confusion matrix with the machine learning model and new data.

Usage

mlPredictCM(mlmod, newdt, prepro_obj, groupvar, posclass)

Arguments

mlmod

A machine learning model with a predict method.

newdt

A SummarizedExperiment or ExpressionSet object with the test data

prepro_obj

An optional pre-processing object created by the preProcess() function. Not required with a training object.

groupvar

A numeric or string indicating the variable from the phenodata to use for grouping (must be a factor of length two).

posclass

A string indicating the positive class from the groupvar

Value

A confusion matrix

Author(s)

Jordi Rofes Herrera


jordirofes/OmniOmics documentation built on Nov. 22, 2022, 5:46 a.m.