resamples(x, ...)## S3 method for class 'default':
resamples(x, modelNames = names(x), ...)
## S3 method for class 'resamples':
summary(object, ...)
resamples
"resamples"
with elementstrain
method
argument values for each modelThe results from train
can have more than one performance metric per resample. Each metric in the input object is saved.
resamples
checks that the resampling results match; that is, the indices in the object trainObject$control$index
are the same. Also, the argument trainControl
returnResamp
should have a value of "final"
for each model.
The summary function computes summary statistics across each model/metric combination.
Eugster et al. Exploratory and inferential analysis of benchmark experiments. Ludwigs-Maximilians-Universitat Munchen, Department of Statistics, Tech. Rep (2008) vol. 30
train
, trainControl
, diff.resamples
, xyplot.resamples
, densityplot.resamples
, bwplot.resamples
, splom.resamples
data(BloodBrain)
set.seed(1)
tmp <- createDataPartition(logBBB,
p = .8,
times = 100)
rpartFit <- train(bbbDescr, logBBB,
"rpart",
tuneLength = 16,
trControl = trainControl(
method = "LGOCV", index = tmp))
ctreeFit <- train(bbbDescr, logBBB,
"ctree",
trControl = trainControl(
method = "LGOCV", index = tmp))
earthFit <- train(bbbDescr, logBBB,
"earth",
tuneLength = 20,
trControl = trainControl(
method = "LGOCV", index = tmp))
## or load pre-calculated results using:
## load(url("http://caret.r-forge.r-project.org/Classification_and_Regression_Training_files/exampleModels.RData"))
resamps <- resamples(list(CART = rpartFit,
CondInfTree = ctreeFit,
MARS = earthFit))
resamps
summary(resamps)
Run the code above in your browser using DataLab