trainModel {PDATK} | R Documentation

## Train a Model Based on the Data in an S4 Object

### Description

Train a Model Based on the Data in an S4 Object

### Usage

    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

    data(samplePCOSPmodel)
    set.seed(getModelSeed(samplePCOSPmodel))

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

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

[Package PDATK version 1.2.0 Index]