r – Error in tune grid in elastic net regression in tidymodels

I’m trying to tune a regularized regression, but the tune grid command returns several errors. I tried several grids, several recipes, but even using only one predictor, it still returns an error. Here’s a reproducible example df <- tibble(normalized_losses = c(NA, NA, NA, 164, 164, NA, 158, NA, 158, NA, 192, 192, 188, 188, NA, … Read more