-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with graph learner with preprocessing #1115
Comments
This was introduced by me: 738b7bd Maybe this check is too strict? |
The commit that caused the book failure fixed #943 (comment) |
I debugged this and for the RF_imp_Hist, the levels for the feature "Electrical" are:
In this case we are lucky that .MISSING is the last level, so dropping it does not change how |
I think the |
I guess the error message should still be improved |
Am I right that this now assumes that the factor levels are the same during train and predict? That seems to be too strict -- there's no reason to assume that all classes seen during training will be predicted. |
then they need to be handled anyway by a pipeop |
Error is now a warning |
This snippet in the book fails currently (https://mlr3book.mlr-org.com/chapters/chapter9/preprocessing.html):
Stack trace from rendering the book is:
Error:
! Learner 'regr.ranger' received task with different column info during train and predict.
This happened PipeOp regr.ranger's $predict()
Backtrace:
Quitting from lines 238-249 [preprocessing-016] (preprocessing.qmd)
Execution halted
I can reproduce this locally.
traceback()
:The text was updated successfully, but these errors were encountered: