Learn R Programming

SLOPE (version 2.0.0)

summary.TrainedSLOPE: Summarize TrainedSLOPE Model

Description

Produces a summary of a trained SLOPE model from cross-validation, including information about the optimal parameters and performance metrics.

Usage

# S3 method for TrainedSLOPE
summary(object, ...)

Value

An object of class 'summary_TrainedSLOPE' with the following components:

call

the call that produced the model

measure

the performance measure(s) used

optima

optimal parameter values and corresponding performance

n_folds

number of cross-validation folds

n_repeats

number of cross-validation repeats

n_models

total number of models evaluated

Arguments

object

an object of class 'TrainedSLOPE', typically from a call to cvSLOPE() or trainSLOPE()

...

other arguments (currently ignored)

See Also

cvSLOPE(), trainSLOPE(), print.summary_TrainedSLOPE()

Other model-tuning: cvSLOPE(), plot.TrainedSLOPE(), refit(), trainSLOPE()

Examples

Run this code
tune <- cvSLOPE(
  subset(mtcars, select = c("mpg", "drat", "wt")),
  mtcars$hp,
  q = c(0.1, 0.2),
  n_folds = 5
)
summary(tune)

Run the code above in your browser using DataLab