mpTuneControl: Generate mpTnControl for mpTune

Description Usage Arguments Value

View source: R/mpTuneControl.R

Description

Generate mpTnControl for mpTune

Usage

1
2
3
4
mpTuneControl(samplingFunction = createCVFolds, ..., sampleIndex = NULL,
  problemType = NA, classProbs = TRUE, preProcess = NULL,
  summaryFunction = defaultSummary, returnData = TRUE,
  allowParallel = TRUE)

Arguments

samplingFunction

A function to takes x, y as input and generate a list of training indices of cases (rows in x)

...

Other argument to be passed to samplingFunction

sampleIndex

A list of training indices. If given, will be used directly and samplingFunction will be ignored

problemType

'classification', 'regression' or 'survival'. Default to be automatically determined. Currently not effective any way

classProbs

Should class probabilities be returned in prediction

preProcess

A caret preProcess function

summaryFunction

summary function for model performance. See caret;;defaultSummary for detail of how to customize. Default to defaultSummary which automatically guess problemType from input and determine what to return

returnData

Should data be saved in the mpTune output

allowParallel

Should models be tuned in parallel

Value

A list ready for mpTnControl in mpTune.


linxihui/lazyML documentation built on May 21, 2019, 6:39 a.m.