mlr3book icon indicating copy to clipboard operation
mlr3book copied to clipboard

Error in example

Open einabadi-sh opened this issue 1 year ago • 2 comments

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.

einabadi-sh avatar Jan 24 '24 16:01 einabadi-sh

Confirmed. We're looking at this.

larskotthoff avatar Jan 26 '24 16:01 larskotthoff

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.

MargareeMan avatar Feb 01 '24 23:02 MargareeMan

This is fixed now.

larskotthoff avatar Aug 19 '24 09:08 larskotthoff