Closed jpaillard closed 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 77.11%. Comparing base (
9b3d98e
) to head (212198a
). Report is 4 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
New implementation of the method
CPI.predict
. The idea is to replace the for loop over permutation by a single batched prediction over all permuted arrays.N: number of samples D: number of features B: number of permutations
New
Previous
Results
Using pytest benchmark I obtain very important computation time improvement.
Reproducibility
The above benchmark can be reproduced as follow:
add the following test to the
test_cpi,py
fileRun the benchmark on the previous (main branch) implementation:
Run the benchmark on the new implementation and compare restults:
Consistency with previous implementation
The random seeding is done in a way that guarantees the exact consistency with the previous implementation.