Skip to content

Conversation

@desilinguist
Copy link
Collaborator

  • Upgrade shap to the recently released 0.42.0.
  • Unpin numpy.
  • Remove code that suppresses warnings on shap imports since it's no longer required.
  • Update some test outputs since shap.sample() behaves differently in 0.42.0.
  • Fix incorrect test names.

Closes #599.

@codecov
Copy link

codecov bot commented Jul 8, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (c580b2e) 95.89% compared to head (e53bdc2) 95.89%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #612      +/-   ##
==========================================
- Coverage   95.89%   95.89%   -0.01%     
==========================================
  Files          59       59              
  Lines        9289     9286       -3     
==========================================
- Hits         8908     8905       -3     
  Misses        381      381              
Impacted Files Coverage Δ
rsmtool/rsmexplain.py 91.91% <100.00%> (-0.13%) ⬇️
tests/test_experiment_rsmexplain.py 96.29% <100.00%> (ø)
tests/test_explanation_utils.py 98.68% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@damien2012eng damien2012eng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome! I am glad that we don't have to suppress warnings. Just one suggestion: Can we unpin numpy and shap on the readme.rst?

@desilinguist
Copy link
Collaborator Author

Great catch! Let me do that.

@desilinguist desilinguist merged commit e0a1392 into main Jul 10, 2023
@delete-merged-branch delete-merged-branch bot deleted the 599-unpin-numpy-fix-shap-import branch July 10, 2023 13:16
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

Successfully merging this pull request may close these issues.

Unpin numpy & fix import when new SHAP is released

4 participants