Learn R Programming

MetaClean (version 1.0.0)

getPredicitons: Get MetaClean Predictions

Description

Wrapper function for retrieving predictions from a trained MetaClean classifier and a test dataset. Returns a data frame with class predictions as well as the associated probabilities for each class prediciton.

Usage

getPredicitons(model, testData, eicColumn)

Arguments

model

The train MetaClean model object.

testData

dataframe. Rows should correspond to peaks, columns should include peak quality metrics and EIC column only.

eicColumn

name of the EIC column

Value

a dataframe with four columns: EIC, Pred_Class, Pred_Prob_Pass, Pred_Prob_Fail

Examples

Run this code
# NOT RUN {
# train classification algorithms
# }
# NOT RUN {
best_model <- getPredictions(model = mc_model,
                                       testData = pqm_test,
                                       eicColumn = "EICNo")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab