View source: R/machineLearning.R
mlPredictCM | R Documentation |
Calculates the caret confusion matrix with the machine learning model and new data.
mlPredictCM(mlmod, newdt, prepro_obj, groupvar, posclass)
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 |
A confusion matrix
Jordi Rofes Herrera
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.