Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define gamma.mu for surv.svm in paradox? #359

Open
wangbaili opened this issue Feb 7, 2022 · 1 comment
Open

How to define gamma.mu for surv.svm in paradox? #359

wangbaili opened this issue Feb 7, 2022 · 1 comment

Comments

@wangbaili
Copy link

I'm new to mlr3 and R.I'm try to adjust parameter for surv.svm, but I can define the ParamSpace by paradox,because the type of
gamma.mu is ParamFct. This is my code:

svm<- lrn("surv.svm")

ps = ParamSet$new(params = list(ParamDbl$new(id = 'bound',lower = 5, upper=15),
ParamFct$new(id = 'opt.meth',levels = c("quadprog","ipop")),
ParamDbl$new(id = 'margin',lower = 0, upper=0.2),
ParamUty$new(id='gamma.mu'),(how to code gamma.mu?)
ParamFct$new(id = 'kernel',levels = c("lin_kernel","add_kernel","rbf_kernel","poly_kernel"))))
at= AutoTuner$new(learner =svm,
resampling = rsmp("holdout"),
measure = msr("surv.cindex"),
terminator = trm("evals", n_evals = 5),
tuner = tnr("random_search"),
search_space=ps)

Thank you!

@bblodfon
Copy link
Contributor

bblodfon commented Aug 17, 2022

Hi @wangbaili,

The code in this issue answers your question. Note that as I report there, I would advise against using survival SVMs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants