plot.TrainedSLOPE | R Documentation |
Plot results from cross-validation
## S3 method for class 'TrainedSLOPE' plot( x, measure = c("auto", "mse", "mae", "deviance", "auc", "misclass"), plot_min = TRUE, ci_alpha = 0.2, ci_border = FALSE, ci_col = "salmon", ... )
x |
an object of class |
measure |
any of the measures used in the call to |
plot_min |
whether to mark the location of the penalty corresponding to the best prediction score |
ci_alpha |
alpha (opacity) for fill in confidence limits |
ci_border |
color (or flag to turn off and on) the border of the confidence limits |
ci_col |
color for border of confidence limits |
... |
words |
An object of class "ggplot"
, which will be plotted on the
current device unless stored in a variable.
trainSLOPE()
Other model-tuning:
caretSLOPE()
,
trainSLOPE()
# Cross-validation for a SLOPE binomial model set.seed(123) tune <- trainSLOPE(subset(mtcars, select = c("mpg", "drat", "wt")), mtcars$hp, q = c(0.1, 0.2), number = 10 ) plot(tune, ci_col = "salmon")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.