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

Colors of Hormonal Contraceptives feature from SHAP summary plot seem wrong. #356

Open
FWijanto opened this issue Nov 28, 2022 · 0 comments

Comments

@FWijanto
Copy link

Hi,
in chapter 9.6.6 a SHAP summary plot for a random forest model trained on the cervical cancer dataset is given. However, from what I checked, and from a previous explanation on chapter 9.5.2, the use of a hormonal contraceptive is correlated positively with an increase in cervical cancer risk. If the Hormonal Contraceptive feature (a yes/no categorical feature) is encoded by a 1 for a yes and a 0 for a no, then high values (red-coloured) of this feature should be seen on the x-axis of the summary plot as having a positive SHAP value and not a negative one as shown currently. Is my interpretation of this issue erroneous or is there a mistake in the plot?

Thank you for reading.

shap-importance-extended

@FWijanto FWijanto changed the title Colors of Hormonal Contraceptives feature from SHAP summary plot seems wrong. Colors of Hormonal Contraceptives feature from SHAP summary plot seem wrong. Nov 28, 2022
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