How to present features selected by learners of ”surv.coxph” or ”surv.coxboost” #713
Unanswered
difficultli
asked this question in
Q&A
Replies: 2 comments 5 replies
-
Thanks for posting your question here. Could you please wrap your code in backticks so its better readable? cc @RaphaelS1 as the topic is survival :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @difficultli , without knowing what paper you read it's hard to help too much. But a few points:
library(mlr3)
library(mlr3proba)
library(mlr3extralearners)
t = tgen("simsurv")$generate(50)
l = lrn("surv.mboost", baselearner = "bols")
l$train(t)
l$importance()
#> height treatment weight
#> 0.0123077879 0.0010131154 0.0002999083 Created on 2021-10-12 by the reprex package (v2.0.1) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear all, I am a super new user of mlr3.
I read some scientific papers that used mlr package to analyze survival (time to death) data.
Paper link: https://pubmed.ncbi.nlm.nih.gov/33230128/
In this paper, the authors showed average number of features selected by each survival model (e.g., "surv.coxboost", "surv.coxph"...) extracted by internal feature selection.
When I run code below, it only gives me performance evaluation in each iteration but not features selected.
And, does makeFilter() method (only see examples from mlr) still work in mlr3 for selecting features for survival data?
Thank you very much!
Is there any way to see what features selected and their coefficients values?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions