validateModel,ClinicalModel,CohortList-method {PDATK} | R Documentation |
Evaluate the Performance of a List of Trained KTSP Models from a PCOSP Model
## S4 method for signature 'ClinicalModel,CohortList' validateModel(model, valData, ...)
model |
A trained |
valData |
A |
... |
Fallthrough arguments to |
The model
object with the validationStats and validationData
slots occupied.
BiocParallel::bplapply
, switchBox::SWAP.KTSP.Classify
data(sampleClinicalModel) data(samplePCSIsurvExp) # Set parallelization settings BiocParallel::register(BiocParallel::SerialParam()) # Train Model trainedClinicalModel <- trainModel(sampleClinicalModel) # Make predictions clinicalPredSurvExp <- predictClasses(samplePCSIsurvExp, model=trainedClinicalModel) # Validate model validatedClincalModel <- validateModel(trainedClinicalModel, valData=clinicalPredSurvExp)