validateModel-ClinicalModel-CohortList-method: Evaluate the Performance of a List of Trained KTSP Models...

Description Usage Arguments Value See Also Examples

Description

Evaluate the Performance of a List of Trained KTSP Models from a PCOSP Model

Usage

1
2
## S4 method for signature 'ClinicalModel,CohortList'
validateModel(model, valData, ...)

Arguments

model

A trained ClinicalModel object, as returned by the trainModel method.

valData

A CohortList containing one or more SurvivalExperiments. The first assay in each SurvivalExperiment will be classified using all top scoring KTSP models in models(model).

...

Fallthrough arguments to BiocParallel::bplapply, use this to configure the parallelization settings for this function. For example to specify BPARAM.

Value

The model object with the validationStats and validationData slots occupied.

See Also

BiocParallel::bplapply, switchBox::SWAP.KTSP.Classify

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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)

bhklab/PanCuRx documentation built on Dec. 30, 2021, 4:59 p.m.