Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change test pass condition for TestChoiceChi::test_goodness_of_fit #7626

Merged
merged 1 commit into from
Jun 13, 2023
Merged

Change test pass condition for TestChoiceChi::test_goodness_of_fit #7626

merged 1 commit into from
Jun 13, 2023

Conversation

pnunna93
Copy link
Contributor

TestChoiceChi::test_goodness_of_fit(https://github.com/cupy/cupy/blob/main/tests/cupy_tests/random_tests/test_generator.py#L830) is sensitive to data randomness and fails on ROCm with its current setup. The test generates random numbers using cupy random generator, which is seeded with random numbers from numpy.random(https://github.com/cupy/cupy/blob/main/cupy/testing/_random.py#L90).
The numpy.random is hardcoded to a seed of 100(https://github.com/cupy/cupy/blob/main/cupy/testing/_random.py#L37).
The test runs for 10 test cases following the seed, but one of them fails on ROCm, which is fine based on significance level used for the test(more details in #7544). This PR changes test passing condition to let it pass on ROCm as mentioned here - #7544 (comment).

@takagi
Copy link
Member

takagi commented Jun 13, 2023

/test mini

@takagi takagi merged commit 25c4850 into cupy:main Jun 13, 2023
@takagi
Copy link
Member

takagi commented Jun 13, 2023

Thanks, @pnunna93!

@pnunna93 pnunna93 deleted the test_gof_change branch June 13, 2023 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants