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

SurvSHAP for models with weights #97

Open
alkat19 opened this issue Oct 24, 2024 · 1 comment
Open

SurvSHAP for models with weights #97

alkat19 opened this issue Oct 24, 2024 · 1 comment

Comments

@alkat19
Copy link

alkat19 commented Oct 24, 2024

Hello,

I was wondering whether you have support for models with weights. For example:

data$weights <- weights

model_rf <- randomForestSRC::rfsrc(Surv(survtime, survstatus) ~ age + grade + tumorthickness + gender + 
						tobacco + race, data = data,case.wt = weights)

explainer <- survex::explain(model_rf,weights = data$weights) 

# or 

explainer <- survex::explain(model_rf,weights = weights) 

The above returns null when I access explainer$weights

@alkat19 alkat19 changed the title SurvSHAP for models in censored/tidymodels SurvSHAP for models with weights Oct 24, 2024
@alkat19
Copy link
Author

alkat19 commented Nov 10, 2024

Is there anyone active here?

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

1 participant