predict-idlab / powershap

A power-full Shapley feature selection method.
Other
193 stars 18 forks source link

:broom: avoid missing package errors #20

Closed jvdd closed 2 years ago

jvdd commented 2 years ago

This PR avoids errors of optional packages not being installed when applying the factory pattern for fetching the appropriate explainer

codecov-commenter commented 2 years ago

Codecov Report

Merging #20 (1f0b658) into main (ec60e93) will decrease coverage by 0.42%. The diff coverage is 66.66%.

@@            Coverage Diff             @@
##             main      #20      +/-   ##
==========================================
- Coverage   83.42%   83.00%   -0.43%     
==========================================
  Files           6        6              
  Lines         350      353       +3     
==========================================
+ Hits          292      293       +1     
- Misses         58       60       +2     
Impacted Files Coverage Δ
powershap/shap_wrappers/shap_explainer_factory.py 85.71% <60.00%> (-14.29%) :arrow_down:
powershap/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ec60e93...1f0b658. Read the comment docs.