For glmnet, we need to keep the training data for prediction time and thus funnel it out of coxnet_train() by stashing it into $fit and then store it in model_fit$training_data - but we don't clean up the $fit slot afterward, so it's in there twice 😬
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
For glmnet, we need to keep the training data for prediction time and thus funnel it out of
coxnet_train()
by stashing it into$fit
and then store it inmodel_fit$training_data
- but we don't clean up the$fit
slot afterward, so it's in there twice 😬This is
fit()
but it also applies tofit_xy()
https://github.com/tidymodels/censored/blob/f9eccb68a51159d55390ac592605600e5d659ef3/R/proportional_hazards.R#L16-L22Created on 2023-04-26 with reprex v2.0.2