error in parameters tuning of svm

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

error in parameters tuning of svm

Hello everyone

I m using the parameters optimization of svm in mlr3. I am setting the
parameters of 'C' and 'type'.

search_space = paradox::ParamSet$new(
 params = list(paradox::ParamInt$new("C", lower = 1, upper = 7),
 paradox::ParamFct$new(id = "type", default = "eps-svr",
   levels = c("eps-svr", "nu-svr", "eps-bsvr"), tags = "train")))

When I run, it gives me the error as follows:

Error in self$assert(xs) :
  Assertion on 'xs' failed: The parameter 'C' can only be set if the
following condition is met 'type <U+2208> {eps-svr, eps-bsvr}'. Instead the
current parameter value is: type=nu-svr.

I do not know why this error comes? Any idea about it?

Warm regards

        [[alternative HTML version deleted]]

[hidden email] mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.