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

benchmark_grid should not allow learners with the same ID #1165

Open
berndbischl opened this issue Sep 4, 2024 · 0 comments
Open

benchmark_grid should not allow learners with the same ID #1165

berndbischl opened this issue Sep 4, 2024 · 0 comments

Comments

@berndbischl
Copy link
Sponsor Member

berndbischl commented Sep 4, 2024

tt = tsk("iris")
lrn1 = lrn("classif.rpart", id = "foo")
lrn2 = lrn("classif.rpart", id = "foo")

xs = list(lrn1, lrn2)

bg = benchmark_grid(learners = xs, tasks = tt, resampling = rsmp("holdout"))
br = benchmark(bg)

this should probably be illegal. also then add a test.

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

1 participant