In glmnet, when you have missing values in the predictor, you get the message " Error in cbind2(1, newx) % % nbeta: invalid class 'NA' to dup_mMatrix_as_dgeMatri". What I run the following in tidymodels: last_fit(object = best_workflow, split = split, metrics = metrics)
where the workflow contains a LASSO model I get the same message: x Resample1: model (predictions): Error in cbind2(1, newx) %* % nbeta: invalid class 'NA' to dup_mMatrix_as_dgeMatrix Warning message: All models failed in [fit_resamples()]. See the
.notes column. Advice would highly appreciated!