Description Usage Arguments Details Value Author(s) References See Also Examples
These functions plot the resampling results for the candidate subset sizes evaluated during the recursive feature elimination (RFE) process
1 2 3 4 5 |
x |
an object of class |
metric |
What measure of performance to plot. Examples of possible values are "RMSE", "Rsquared", "Accuracy" or "Kappa". Other values can be used depending on what metrics have been calculated. |
... |
|
data |
an object of class |
output |
either "data", "ggplot" or "layered". The first returns a data frame while the second returns a simple |
These plots show the average performance versus the subset sizes.
a lattice or ggplot object
Max Kuhn
Kuhn (2008), “Building Predictive Models in R Using the caret” (http://www.jstatsoft.org/v28/i05/)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Not run:
data(BloodBrain)
x <- scale(bbbDescr[,-nearZeroVar(bbbDescr)])
x <- x[, -findCorrelation(cor(x), .8)]
x <- as.data.frame(x)
set.seed(1)
lmProfile <- rfe(x, logBBB,
sizes = c(2:25, 30, 35, 40, 45, 50, 55, 60, 65),
rfeControl = rfeControl(functions = lmFuncs,
number = 200))
plot(lmProfile)
plot(lmProfile, metric = "Rsquared")
ggplot(lmProfile)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.