mlr3book
mlr3book copied to clipboard
Error in example
I ran this example of the book, I get this error:
library(mlr3verse)
tasks = tsks(c("breast_cancer", "sonar"))
glrn_rf_tuned = as_learner(ppl("robustify") %>>% auto_tuner(
tnr("grid_search", resolution = 5),
lrn("classif.ranger", num.trees = to_tune(200, 500)),
rsmp("holdout")
))
glrn_rf_tuned$id = "RF"
glrn_stack = as_learner(ppl("robustify") %>>% ppl("stacking", lrns(c("classif.rpart", "classif.kknn")), lrn("classif.log_reg")))
Error in gunion(list(g1, g2), in_place = c(TRUE, TRUE)) :
Assertion on 'ids of pipe operators of graphs' failed: Must have unique names, but element 18 is duplicated.
Confirmed. We're looking at this.
Same issue: (24-02-01)
Error in gunion(list(g1, g2), in_place = c(TRUE, TRUE)) : Assertion on 'ids of pipe operators of graphs' failed: Must have unique names, but element 18 is duplicated.
This is fixed now.