Description Usage Arguments Details Value Author(s) See Also Examples
Lattice functions for visualizing resampling result differences between models
1 2 3 4 5 6 7 8 9 10 11 | ## S3 method for class 'diff.resamples'
densityplot(x, data, metric = x$metric, ...)
## S3 method for class 'diff.resamples'
bwplot(x, data, metric = x$metric, ...)
## S3 method for class 'diff.resamples'
levelplot(x, data = NULL, metric = x$metric[1], what = "pvalues", ...)
## S3 method for class 'diff.resamples'
dotplot(x, data = NULL, metric = x$metric[1], ...)
|
x |
an object generated by |
data |
Not used |
what |
|
metric |
a character string for which metrics to plot. Note: |
... |
further arguments to pass to either |
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.
a lattice object
Max Kuhn
resamples
, diff.resamples
, bwplot
, densityplot
, xyplot
, splom
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
#load(url("http://caret.r-forge.r-project.org/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")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.