predictClasses: Predict Classes for New Data Based on a Train Classifier...

Description Usage Arguments Value Examples

Description

Predict Classes for New Data Based on a Train Classifier Model

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(sampleTrainedPCOSPmodel)
data(samplePCSIsurvExp)

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

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

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