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

Error in example #809

Open
einabadi-sh opened this issue Jan 24, 2024 · 2 comments
Open

Error in example #809

einabadi-sh opened this issue Jan 24, 2024 · 2 comments

Comments

@einabadi-sh
Copy link
Contributor

einabadi-sh commented Jan 24, 2024

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.
@larskotthoff
Copy link
Sponsor Member

larskotthoff commented Jan 26, 2024

Confirmed. We're looking at this.

@MargareeMan
Copy link

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.

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

No branches or pull requests

3 participants