Skip to content

Note non-determinism in random projection transforms#7129

Merged
rapids-bot[bot] merged 1 commit intorapidsai:branch-25.10from
jcrist:random-projection-nondeterministic
Aug 22, 2025
Merged

Note non-determinism in random projection transforms#7129
rapids-bot[bot] merged 1 commit intorapidsai:branch-25.10from
jcrist:random-projection-nondeterministic

Conversation

@jcrist
Copy link
Copy Markdown
Member

@jcrist jcrist commented Aug 22, 2025

Due to an upstream cupy bug (cupy/cupy#9323), mixing sparse/dense arrays may result in close but not perfectly reproducible results. This means that passing a sparse array to GaussianRandomProjection.transform (or a dense array to SparseRandomProjection.transform) won't produce exactly identical results each run, even with a random_state set.

For now we document this limitation and relax the bounds on a flaky test.

Due to an upstream cupy bug, mixing sparse/dense arrays may result in
close but not perfectly reproducible results. This means that passing a
sparse array to `GaussianRandomProjection.transform` (or a dense array
to `SparseRandomProjection.transform`) won't produce exactly identical
results each run, even with a `random_state` set.

For now we document this limitation and relax the bounds on a flaky
test.
@jcrist jcrist requested a review from a team as a code owner August 22, 2025 20:20
@jcrist jcrist requested review from betatim and viclafargue August 22, 2025 20:20
@jcrist jcrist self-assigned this Aug 22, 2025
@github-actions github-actions Bot added the Cython / Python Cython or Python issue label Aug 22, 2025
@jcrist jcrist added bug Something isn't working non-breaking Non-breaking change labels Aug 22, 2025
@jcrist
Copy link
Copy Markdown
Member Author

jcrist commented Aug 22, 2025

/merge

@rapids-bot rapids-bot Bot merged commit feea7fe into rapidsai:branch-25.10 Aug 22, 2025
76 checks passed
@jcrist jcrist deleted the random-projection-nondeterministic branch August 22, 2025 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants