Description Usage Arguments Value Examples
View source: R/getPredictions.R
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.
1 | getPredicitons(model, testData, eicColumn)
|
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 |
a dataframe with four columns: EIC, Pred_Class, Pred_Prob_Pass, Pred_Prob_Fail
1 2 3 4 | # train classification algorithms
best_model <- getPredictions(model = mc_model,
testData = pqm_test,
eicColumn = "EICNo")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.