Closed Vincent-Maladiere closed 4 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.15%. Comparing base (
03566f6
) to head (2de9df5
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Coverage variation | Diff coverage |
---|---|
:white_check_mark: +0.00% | :white_check_mark: ∅ |
:rocket: Don’t miss a bit, follow what’s new on Codacy.
Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more
Thanks a lot for the PR.
Sorry for initially messing up your commit, but it's merged with commit ecd6dadbbaf217cc1cf8974f5b904b71d727c67d now.
Awesome, thanks!
Checklist
What does this implement/fix? Explain your changes Hello @sebp!
The
sksurv.metrics._iter_comparable
function repeatedly creates a mask usingnp.zero
, but this mask doesn't change for different elementsj
of the loop. Mallocs are computationally expensive, so this short PR proposes to reduce the number of calls tonp.zero
by creating the mask before the for-loop.This will help make the c_index functions more efficient. WDYT?
cc @ogrisel