Skip to content
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

fix: Add drop_levels = FALSE to call of mlr3::convert_task() in PipeOpTargetMutate and PipeOpTargetTrafoScaleRange #876

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

advieser
Copy link
Collaborator

@advieser advieser commented Feb 15, 2025

  • Fixes dropping of unseen factor levels in PipeOpTargetMutate and PipeOpTargetTrafoScaleRange.
  • Addresses point 1 from PipeOpTargetMutate QOL #707.
  • Checks that trafo hyperparameter of PipeOpTargetMutate returns a df/dt/matrix.

closes #631

@advieser advieser changed the title fix: PipeOpTargetMutate does no longer drop missing factor levels fix: Add drop_levels = FALSE to call of mlr3::convert_task() in PipeOpTargetMutate and PipeOpTargetTrafoScaleRange Feb 17, 2025
@advieser advieser marked this pull request as ready for review February 17, 2025 13:22
@advieser
Copy link
Collaborator Author

We might instead want to add drop_levels as a parameter?

@advieser
Copy link
Collaborator Author

Also, I don't know whether we want to add the bikesharing example to mlr3website, now that it should work again? It was removed from mlr3gallery in 2021 because of this issue (see here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PipeOpTargetTrafo drops missing factor levels
1 participant