validateModel-GeneFuModel-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 'GeneFuModel,CohortList'
validateModel(model, valData, ...)

Arguments

model

A GeneFuModel with a DataFrame of gene coefficients in the models slot.

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
data(sampleTrainedPCOSPmodel)
data(samplePCOSPpredList)

# Set parallelization settings
BiocParallel::register(BiocParallel::SerialParam())

# Validate model
validatedPCOSPmodel <- validateModel(sampleTrainedPCOSPmodel,
  valData=samplePCOSPpredList)

bhklab/PDATK documentation built on Dec. 27, 2021, 7:46 a.m.