validateModel,PCOSP_or_RLS_or_RGA,CohortList-method {PDATK} | R Documentation

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

### Description

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

### Usage

    ## S4 method for signature 'PCOSP_or_RLS_or_RGA,CohortList'
    validateModel(model, valData, ...)

### Arguments

`model` | A `PCOSP` model which has been trained using `trainModel`.
`valData` | A `CohortList` containing one or more `SurvivalExperiment`s. 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

    data(sampleTrainedPCOSPmodel)
    data(samplePCOSPpredList)

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

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

[Package PDATK version 1.2.0 Index]