trainClassifiers: Calls trainClassifier for different combination of...

Description Usage Arguments Value See Also

Description

Calls trainClassifier for different combination of parameters as specified by a data.frame.

Usage

1
2
3
4
5
6
trainClassifiers(mdt, params, rbind = TRUE, verbose = TRUE, seed = NULL,
  .export = NULL)

## S4 method for signature 'MDT,data.frame'
trainClassifiers(mdt, params, rbind = TRUE,
  verbose = TRUE, seed = NULL, .export = NULL)

Arguments

mdt

MDT object.

params

data.frame of different combinations of parameters. See expand.grid to see how to create such a data.frame. To specify a parameter of a length bigger than one, and for which combinations of values are not relevant (such as phen_vars), specify it as a list. For example, expand.grid(p = 0.5, phen_vars = list('Sex', 'Age')). Arguments with value NA will not be passed on to trainClassifier.

rbind

logical specifying if results should be bound at the end with rbind and return just one MLGWAS object, or, if results should be returned as a list of MLGWAS objects

verbose

logical specifying if function should be run in verbose mode.

seed

integer specifying random number generation seed.

.export

character vector of variables to export. This can be useful when accessing a variable that isn't defined in the current environment. The default value in NULL.

Value

An MLGWAS object or a list of MLGWAS objects according to rbind argument.

See Also

trainClassifier


olivmrtn/MachineLearningGWAS documentation built on May 24, 2019, 12:52 p.m.