Skip to content

Calculation of SHAP values for continuous and categorical variables #93

@lzxcvn

Description

@lzxcvn

Hello, While using model_survshap() for global interpretation with shaps, I found that this function seems to be unable to distinguish between continuous variables and categorical variables, which has caused my concern. Even though I added a list of categorical variables, is the calculation of shap values the same for different variables? This seems to change the order of importance of the variables.
image
My code can run, but the results seem unreliable. Previously unimportant variables such as categorical variables like sex seem to have become more important

Metadata

Metadata

Assignees

No one assigned

    Labels

    question ❔Further information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions