
Last chance! 50% off unlimited learning
Sale ends in
Lattice functions for visualizing resampling result differences between models
# S3 method for diff.resamples
dotplot(x, data = NULL, metric = x$metric[1],
...)
an object generated by diff.resamples
Not used
a character string for which metrics to plot. Note:
dotplot
and levelplot
require exactly two models whereas the
other methods can plot more than two.
further arguments to pass to either
densityplot
,
dotplot
or
levelplot
a lattice object
densityplot
and bwplot
display univariate visualizations of
the resampling distributions. levelplot
displays the matrix of
pair-wide comparisons. dotplot
shows the differences along with their
associated confidence intervals.
resamples
, diff.resamples
,
bwplot
,
densityplot
,
xyplot
, splom
# NOT RUN {
# }
# NOT RUN {
#load(url("http://topepo.github.io/caret/exampleModels.RData"))
resamps <- resamples(list(CART = rpartFit,
CondInfTree = ctreeFit,
MARS = earthFit))
difs <- diff(resamps)
dotplot(difs)
densityplot(difs,
metric = "RMSE",
auto.key = TRUE,
pch = "|")
bwplot(difs,
metric = "RMSE")
levelplot(difs, what = "differences")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab