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.
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.