We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The new another col role is reset after training. Expected behaviour is to keep the value.
library(mlr3) library(mlr3pipelines) mlr_reflections = utils::getFromNamespace("mlr_reflections", ns = "mlr3") mlr_reflections$task_col_roles$classif = union(mlr_reflections$task_col_roles$classif, "another") task = tsk("penguins") task$col_roles$another = "island" print(task$col_roles) #> $feature #> [1] "bill_depth" "bill_length" "body_mass" "flipper_length" #> [5] "island" "sex" "year" #> #> $target #> [1] "species" #> #> $name #> character(0) #> #> $order #> character(0) #> #> $stratum #> character(0) #> #> $group #> character(0) #> #> $weight #> character(0) #> #> $another #> [1] "island" graph = ppl("convert_types", "integer", "numeric") task = graph$train(task)[[1L]] print(task$col_roles) #> $feature #> [1] "body_mass" "flipper_length" "year" "bill_depth" #> [5] "bill_length" "island" "sex" #> #> $target #> [1] "species" #> #> $name #> character(0) #> #> $order #> character(0) #> #> $stratum #> character(0) #> #> $group #> character(0) #> #> $weight #> character(0) #> #> $another #> character(0)
Created on 2025-01-06 with reprex v2.1.1
The text was updated successfully, but these errors were encountered:
PipeOpTaskPreproc
added test for fix to #864
97c2e4b
Successfully merging a pull request may close this issue.
The new another col role is reset after training. Expected behaviour is to keep the value.
Created on 2025-01-06 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: