-
Notifications
You must be signed in to change notification settings - Fork 14
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(t) values for cumulative hazard function #3
Comments
Dear Mariia, You are right, by default, current explanations are based on the attribution to survival function. However, from the technical side, nothing prevents the use of the cumulative hazard function. As you've noticed, this was already available on a local level before (as we focused on local explanations in the article). Now, I have also added this option on the global level. Just create a ModelSurvSHAP object and set the By default, the model's method called Kind Regards, |
Dear Mateusz, thank you very much for your reply and for the implemented changes! Kind Regards, |
Dear authors,
firstly, thank you very much for providing the opportunity to explain survival models with SHAP values!
I would like to calculate SHAP values based on the attribution to the cumulative hazard function. I was thinking that setting predict_cumulative_hazard_function to True for the object SurvivalModelExplainer would mean calculating SHAP for the chf, but no matter how I vary the parameters predict_cumulative_hazard_function and predict_survival_function the resulted SHAP values do not seem to change.
In the code I saw the opportunity to set the function_type to chf for the PredictSurvSHAP object, but even though SurvivalModelExplainer seems to call PredictSurvSHAP I found no way of setting function_type via SurvivalModelExplainer.
Could you please tell me how can I produce SHAP values for chf? Am I right that current explanations are based on the attribution to survival function?
Kind Regards,
Mariia
The text was updated successfully, but these errors were encountered: