plot_lambdas {nestedcv}R Documentation

Plot cross-validated glmnet lambdas across outer folds

Description

Plot of cross-validated glmnet lambda parameter against deviance for each outer CV fold.

Usage

plot_lambdas(
  x,
  scheme = NULL,
  palette = "Dark 3",
  showLegend = if (x$outer_method == "cv") "topright" else NULL,
  ...
)

Arguments

x

Fitted "nestcv.glmnet" object

scheme

colour scheme

palette

palette name (one of hcl.pals()) which is passed to hcl.colors

showLegend

Either a keyword to position the legend or NULL to hide the legend.

...

other arguments passed to plot. Use type = 'p' to plot a scatter plot instead of a line plot.

Value

No return value

Author(s)

Myles Lewis

See Also

nestcv.glmnet


[Package nestedcv version 0.7.9 Index]