Skip to content

Fix random seed used in test_3d_similarity_estimation - #472

Merged
rapids-bot[bot] merged 1 commit into
rapidsai:branch-23.02from
grlee77:fix-random-seed-in-similarity-estimation-test-case
Jan 4, 2023
Merged

rapids-bot[bot] merged 1 commit into
rapidsai:branch-23.02from
grlee77:fix-random-seed-in-similarity-estimation-test-case

Conversation

@grlee77

@grlee77 grlee77 commented Jan 4, 2023

Copy link
Copy Markdown
Contributor

This MR fixes the random seed used in test_3d_similarity_estimation to avoid a stochastic test failure observed both locally and on CI. While fixing the seed, the test case is also updated to use the newer style RandomGenerator API.

some choices of random parameters can be poorly conditioned, leading to NaN in the output
@grlee77 grlee77 added bug Something isn't working non-breaking Introduces a non-breaking change labels Jan 4, 2023
@grlee77
grlee77 requested a review from a team as a code owner January 4, 2023 17:31
Comment on lines +152 to +154
seed = 10
rng = cp.random.default_rng(seed)
src_points = rng.random(size=(1000, 3))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should consider parameterizing these. Though that can be a follow up item separate from this PR

@jakirkham

Copy link
Copy Markdown
Member

Thanks Greg! 🙏

@jakirkham

Copy link
Copy Markdown
Member

@gpucibot merge

@rapids-bot

rapids-bot Bot commented Jan 4, 2023

Copy link
Copy Markdown
Contributor

@jakirkham, the @gpucibot merge command has been replaced with /merge.

Please re-comment this PR with /merge and use this new command in the future.

@jakirkham

Copy link
Copy Markdown
Member

/merge

@rapids-bot
rapids-bot Bot merged commit dbbeaf9 into rapidsai:branch-23.02 Jan 4, 2023
@jakirkham jakirkham added this to the v23.02.00 milestone Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants