Hi. I am having an error in my code of fitting a lasso regression model to predict weight based on all the other variables.
May someone help please? Thank you
library(tidyverse) library(tidymodels) #> Registered S3 method overwritten by 'tune': #> method from #> required_pkgs.model_spec parsnip fitted_model %>% augment(new_data = zoo_train) %>% conf_mat(truth = weight, estimate = .pred_class) #> Error in lambda - s : non-numeric argument to binary operator
Created on 2022-03-26 by the reprex package (v2.0.1)