Skip to content

Commit

Permalink
fix: unique column roles
Browse files Browse the repository at this point in the history
  • Loading branch information
be-marc committed Aug 1, 2024
1 parent e3d693d commit afcfb37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
x$optimizer_properties = c(x$optimizer_properties, "requires_model")

x = utils::getFromNamespace("mlr_reflections", ns = "mlr3")
x$task_col_roles$classif = c(x$task_col_roles$classif, "always_included")
x$task_col_roles$regr = c(x$task_col_roles$regr, "always_included")
x$task_col_roles$classif = unique(c(x$task_col_roles$classif, "always_included"))
x$task_col_roles$regr = unique(c(x$task_col_roles$regr, "always_included"))

# callbacks
x = utils::getFromNamespace("mlr_callbacks", ns = "mlr3misc")
Expand Down

0 comments on commit afcfb37

Please sign in to comment.