Repository navigation
Conversation
Comments Outside DiffThese findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.
|
|
I'll try to take a closer look at this |
|
I think greptile found the problem, so pushed a fix here. |
|
Reviews (2): Last reviewed commit: "Fix rng for SSIM test to be run threaded" | Re-trigger Greptile |
|
Reviews (3): Last reviewed commit: "Seed each testing function" | Re-trigger Greptile |
ngoldbaum
left a comment
There was a problem hiding this comment.
Nice! Glad it was the same pattern as all the other rng changes.
|
@michaelbratsch This older PR was supposed to rework the RNGs for structural similarity. Do you mind taking a look, now that yours has been merged, whether we should apply the rest? |
|
|
I think it is reasonable to fix the seed for the unit tests to prevent flaky unit tests. It surely limits the test coverage but currently there is no way of knowing the seed so one can't debug anyway. As a totally different approach, I tried in the past hypothesis testing (https://hypothesis.readthedocs.io/en/latest/) but in my experience it's really hard to follow through when it comes to numerical stability. |
|
We have changed the base branch for this PR from the Summary - what this means for your PRYou can continue to work on your PR, now based on Once we've merged your PR into the In addition - our automated script detected that your branch had merge conflicts with the pre-Megamove branch. Please make sure to merge in the Read on for the Megamove rationale, and more detailed instructions. DetailsRationaleWe've changed the base branch to make it easier and smoother to continue to work on your PR, while we work through a rather large change in the directory structure of the repository - a change that we have called Megamove. See the Megamove explanation issue for more detail. Changing the base branch means you do not see merge conflicts related to the Megamove change, and can continue to work with the repository in its original state, without worrying about porting those changes across to the new post-Megamove structure. As you'll see in the linked issue, you can continue to work on your PR as before, and you can continue to use the Github GUI to "Update branch" - this updates from the new To emphasize again, do not try and merge the scikit-image When we've approved your PR, we'll merge into the Any questions, please reply here. |
Replace the module-level NumPy global RNG state in the skimage2 structural similarity tests with per-test local RNGs so the tests can run under pytest-run-parallel. Use np.random.RandomState (per the pattern established in scikit-image#8084) to keep the reference values that cam_noisy depends on stable. Resolves the merge conflict in test_structural_similarity_dtype and addresses the review on scikit-image#8196.
|
This AI review is meant to assist maintainers with quick spot checks. You don't need to act on it until you hear from a maintainer. [Low risk] Test file fixes random seeding for thread safety. The PR appears safe to merge. Reviews (5) · Last reviewed commit: "Seed each SSIM test with a local RNG" |
Replace the module-level NumPy global RNG state in the skimage2 structural similarity tests with per-test local RNGs so the tests can run under pytest-run-parallel. Use np.random.RandomState (per the pattern established in scikit-image#8084) to keep the reference values that cam_noisy depends on stable. Resolves the merge conflict in test_structural_similarity_dtype and addresses the review on scikit-image#8196.
5630301 to
93bd15e
Compare
No description provided.