Description Usage Arguments Value Examples
Compare Two Mathematical Models Represented as S4
Objects
1 | compareModels(model1, model2, ...)
|
model1 |
A |
model2 |
A |
... |
Allow new parameters to be defined for this generic. |
A S4
object with statistics about the performance of each model.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | data(sampleValPCOSPmodel)
data(sampleClinicalModel)
data(sampleCohortList)
# Set parallelization settings
BiocParallel::register(BiocParallel::SerialParam())
# Train the model
trainedClinicalModel <- trainModel(sampleClinicalModel)
# Predict risk/risk-class
ClinicalPredPCSI <- predictClasses(sampleCohortList[c('PCSI', 'TCGA')],
model=trainedClinicalModel)
# Validate the models
validatedClinicalModel <- validateModel(trainedClinicalModel,
valData=ClinicalPredPCSI)
# Compare the models
modelComp <- compareModels(sampleValPCOSPmodel, validatedClinicalModel)
head(modelComp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.