Description Usage Arguments Value
View source: R/mpTuneControl.R
Generate mpTnControl for mpTune
1 2 3 4 | mpTuneControl(samplingFunction = createCVFolds, ..., sampleIndex = NULL,
problemType = NA, classProbs = TRUE, preProcess = NULL,
summaryFunction = defaultSummary, returnData = TRUE,
allowParallel = TRUE)
|
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 |
sampleIndex |
A list of training indices. If given, will be used directly and |
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 |
A list ready for mpTnControl
in mpTune
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.