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

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to