-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Encoding new levels for factors #508
Comments
Hey, If I understand your question correctly, your goal is to add a
|
My question was more about unexpected behaviour rather than about practical usage.
and got the desired output (mapping new factor levels to the same
So, everything works fine, additional column is produced only when it makes sense. |
My question in somewhat related to #71
I'm not able to implement very simple approach to dealing on prediction stage with factor levels unseen during training:
Desired output:
NA
can be replaced with 0 usingmlr_pipeops_imputeconstant()
(and it is sufficient in most cases), but how to add column for new factor level(s)? It looks like an issue with interaction betweenpo("fixfactors")
andpo("missind")
applied sequentially.The text was updated successfully, but these errors were encountered: