How do I calculate which Elastic Net model is the most regularized/parsimonious?
I am recreating GLMnet in another language as an exercise. I want to do a grid search over several values of alpha and lambda, and then take the most parsimonious model with a prediction error within 1 standard error of the mean of the smallest prediction error. (I think this is similar to what the R package caret does.)
My question is, how do I choose 'most parsimonious'? A higher lambda means stronger regularization, as does a higher alpha, but how do I combine the two?