This function prints the cross-validation summary for the alpha with the best validation performance as well as the lambda at which this performance was reached and the largest lambda (lambda_1se) with a performance within one standard deviation of that.

# S3 method for cv_sgdnet
print(x, ...)

Arguments

x

an object of class "cv_sgdnet" as generated from a call to cv_sgdnet()

...

arguments passed on to print()

Value

Prints a data.frame with columns

type

type of validation performance metric

alpha

elastic net mixing parameter

lambda

regularization strength

mean

mean of the prediction metric across the folds

sd

standard deviation of the prediction metric across the folds

ci_lo

mean minus one standard deviation

ci_up

mean plus one standard deviation

See also

print.data.frame(), print(), cv_sgdnet()

Examples

fit <- cv_sgdnet(mtcars$drat, mtcars$hp) print(fit)
#> type alpha lambda mean sd ci_lo #> lambda_min Mean-Squared Error 1 14.38718 6586.583 2410.047 4176.536 #> lambda_1se Mean-Squared Error 1 30.28364 6678.639 1962.260 4716.379 #> ci_up #> lambda_min 8996.630 #> lambda_1se 8640.899