Closed edsantor closed 3 years ago
I've done some more research and I think the following dependencies are not correct:
Both cost
and epsilon
are required parameters also for nu-regression
(Schölkopf et. al, 2000).
Can I remove these dependencies on my pc? Someone help me?
Fixed ksvm in mlr3extralearners https://github.com/mlr-org/mlr3extralearners/pull/116
Hi @edsantor
Thanks for posting a reproducible example.
I've checked and I think you are right, cost
should also allow nu-regression
. I think the answer of @larskotthoff was a bit too hasty in https://github.com/mlr-org/mlr3learners/issues/207#issuecomment-932008669.
For a short term fix you can install {mlr3learners} from the branch via remotes::install_github("mlr-org/mlr3learners@c-nu-regr")
. Alternatively you can also use the fixed ksvm learner in {mlr3exterlearners}.
The fix will be included in the next CRAN release.
Sorry for all the troubles you had with this issue and all the rejections of your previous questions! A reprex right from the start always helps. As a side note, please try to avoid cross-posting across sites (stackoverflow, Github, cross-validated, etc.). AFAICS there were five questions opened by you in total about the same issue in the end.
If you think something needs more discussion, you can also join our Mattermost and link to your question there.
Hi @pat-s
Sorry for cross-posting, I'm a beginner.
Thank you very much for fixing the bug and for your valuable advice.
I reopen this issue to demonstrate with the iris data that it is possible to set the
cost
parameter withnu-regression
using thee1071
package directly. However, within mlr3 withregr.svm
learner this is not possible and returns an error fornu-regression
. The influence ofcost
on the RMSE can be observed in the following plot:The error returned in the learner definition is shown below:
The same error is returned using the
kernlab
package with theregr.ksvm
learner:Please research this question before giving an answer. Thank you very much.