mlr-org / mlr3gallery

Case studies using mlr3
https://mlr3gallery.mlr-org.com
21 stars 9 forks source link

cannot run your code from your article #115

Closed ayueme closed 2 years ago

ayueme commented 2 years ago

I copied you code from this article Practical Tuning Series - Build an Automated Machine Learning System , when I run this code: graph_learner$param_set$values$branch.selection = to_tune(c("kknn", "svm", "ranger")), I got this error: Error in self$assert(xs) : Assertion on 'xs' failed: branch.selection: tune token invalid: to_tune(c("kknn", "svm", "ranger")) generates points that are not compatible with param selection. Bad value: [1] "kknn" Parameter: id class lower upper levels default 1: selection ParamInt 1 3 <NoDefault[3]>. How should I correct it ? Thank you.

pat-s commented 2 years ago

There seem to be some issues with this post right now, we're trying to resolve it. See also #116

be-marc commented 2 years ago

Thanks for reporting. Fixed by latest mlr3 github version.