Skip to content

Correct bug, add init randoms, parallel computing#26

Merged
sfarrens merged 4 commits into
masterfrom
jackknife
Oct 26, 2022
Merged

Correct bug, add init randoms, parallel computing#26
sfarrens merged 4 commits into
masterfrom
jackknife

Conversation

@aguinot

@aguinot aguinot commented Apr 12, 2022

Copy link
Copy Markdown

Some improvements on the jackknife_weighted_average.

  • Bug: In the original implementation I was using replace=True (the default value) which will lead to issues because some object will be counted multiple times. This is actually very likely to happen when we compute both the additive bias and the PSF leakage because we don't remove a lot of objects. It is like randomly picking 9 value between [0, 10] you will have repeated numbers. That slowdown the process.
  • Due to the bug I fixed, I have implemented a parallel version of this code. Around 2min for 500 realizations on an array of size 10M.
  • I have added seed handling for reproducibility.

@github-actions

Copy link
Copy Markdown

Unit Test Report

  1 files  1 suites   4m 39s ⏱️
21 tests 0 ✔️ 0 💤 21 ❌

For more details on these failures, see this check.

Results for commit 9631290.

@aguinot aguinot mentioned this pull request Apr 12, 2022
@aguinot aguinot requested a review from martinkilbinger April 12, 2022 21:54
Comment thread sp_validation/basic.py Outdated
Comment thread sp_validation/basic.py Outdated
Comment thread sp_validation/basic.py Outdated
Comment thread sp_validation/basic.py Outdated
@sfarrens sfarrens added the bug Something isn't working label May 4, 2022
@sfarrens sfarrens merged commit 91dee32 into master Oct 26, 2022
@sfarrens sfarrens deleted the jackknife branch October 26, 2022 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants