I currently have code similar to the below.
set.seed(1) library(glmnet) matrix_example <- matrix(runif(100000), ncol = 50) grid <- 10 ^ seq(20, -2, length =