Description Usage Arguments Value Examples
Validate a ClinicalModel object with a single SurvivalExperiment object.
1 2 | ## S4 method for signature 'ClinicalModel,SurvivalExperiment'
validateModel(model, valData)
|
model |
A |
valData |
A |
The ClinicalModel
with the validation statistics in the
validationStats
slot and the validation data in the validationData
slot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(sampleClinicalModel)
data(sampleCohortList)
# Set parallelization settings
BiocParallel::register(BiocParallel::SerialParam())
# Train Model
trainedClinicalModel <- trainModel(sampleClinicalModel)
# Make predictions
clinicalPredCohortList <- predictClasses(sampleCohortList[c('PCSI', 'TCGA')],
model=trainedClinicalModel)
# Validate model
validatedClinicalModel <- validateModel(trainedClinicalModel,
valData=clinicalPredCohortList)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.