prediction for rank-deficient fit results in .pred_res
outcome name
#985
Labels
bug
an unexpected problem or unintended behavior
.pred_res
outcome name
#985
As the title says, when you predict from a rank-deficient fit, in 4.3.0 or later, the output of
predict.lm()
comes with an attributeattr(*, "non-estim")
, which messes up the prediction coming from {parsnip}, giving it an column name of.pred_res
instead of.pred
. Which THEN turns into errors for most of the {tune} functions. Should be a fairly easy fix.I found it when working on tidymodels/workshops#105.
R 4.2.0
R 4.3.0
Created on 2023-07-02 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: