predictClasses {PDATK} | R Documentation

## Predict Classes for New Data Based on a Train Classifier Model

### Description

Predict Classes for New Data Based on a Train Classifier Model

### Usage

    predictClasses(object, model, ...)

### Arguments

`object` | An `S4` object containing data to predict classes from.
`model` | An `S4` object containing one or more trained classification models.
`...` | Allow further parameters to be defined on this generic.

### Value

The `S4` object with class predictions added to the metadata.

### Examples

    data(sampleTrainedPCOSPmodel)
    data(samplePCSIsurvExp)

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

    # Make predictions
    PCOSPpredSurvExp <- predictClasses(samplePCSIsurvExp,
      model=sampleTrainedPCOSPmodel)
    head(colData(PCOSPpredSurvExp))

[Package PDATK version 1.2.0 Index]