trainModel: Train a Model Based on the Data in an S4 Object

Description Usage Arguments Value Examples

Description

Train a Model Based on the Data in an S4 Object

Usage

1
trainModel(object, ...)

Arguments

object

An S4 object representing an untrained statistical or machine. learning model.

...

Allow new method to be defined for this generic.

Value

The same object with the @model slot populated with the fit model

Examples

1
2
3
4
5
6
7
data(samplePCOSPmodel)
set.seed(getModelSeed(samplePCOSPmodel))

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

trainModel(samplePCOSPmodel, numModels=5, minAccuracy=0.6)

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