Description Usage Arguments Value See Also
View source: R/resample_mpTune.R
Resample (e.g., cross validation, cross validation) to estimate the true performance
of the whole mpTune
model choosing precedure.
1 2 3 4 5 6 7 8 9 10 11 | resample(obj, ...)
## S3 method for class 'mpTune.formula'
resample(obj, formula = obj$data$formula,
data = obj$data$data, ...)
## S3 method for class 'mpTune'
resample(obj, x = obj$data$x, y = obj$data$y,
weights = obj$data$weights, samplingFunction = createCVFolds, ...,
returnAllSummaries = TRUE, summaryArgs = NULL, returnAllMpTunes = FALSE,
printresampleInfo = TRUE, parallelResampling = FALSE)
|
obj |
A |
... |
Further arguments to be passed to |
formula |
A model formula. Default to obj$data$formula if any |
data |
Data to fit. Default to obj$data$data if any |
x |
Design matrix if not in |
y |
Response vector if not in |
weights |
Sample weights if not in |
samplingFunction |
Any function that returns a list of indices for training |
returnAllSummaries |
Should all |
summaryArgs |
Additional argument passed to |
returnAllMpTunes |
Should all |
printresampleInfo |
If to print resampling fitting progress (not implemented yet) |
parallelResampling |
Should resampling fitting be parallelled (not implemented yet) |
A 'resampledMpTune' object with entries
aggregatePerformancea data.frame gives an aggregated (over resamples) performance
allResamplePerformancea data.frame gives detail performance on earch resample
sampleIndexa list of resample indices for training
See mpTune
for examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.