ModelOriented / kernelshap

Different SHAP algorithms
https://modeloriented.github.io/kernelshap/
GNU General Public License v2.0
39 stars 7 forks source link

Slight speed-up of permshap() #112

Closed mayer79 closed 12 months ago

mayer79 commented 12 months ago

This PR removes the workload from calculating v_z for the two special permutations v_0 and v_1

codecov-commenter commented 12 months ago

Codecov Report

Merging #112 (60e8e8a) into main (64c65d7) will increase coverage by 0.04%. The diff coverage is 100.00%.

:exclamation: Current head 60e8e8a differs from pull request most recent head c0bc2e1. Consider uploading reports for the commit c0bc2e1 to get more accurate results

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main     #112      +/-   ##
==========================================
+ Coverage   96.54%   96.59%   +0.04%     
==========================================
  Files           6        6              
  Lines         434      440       +6     
==========================================
+ Hits          419      425       +6     
  Misses         15       15              
Files Coverage Δ
R/permshap.R 100.00% <100.00%> (ø)
R/utils_permshap.R 100.00% <100.00%> (ø)