-
Notifications
You must be signed in to change notification settings - Fork 553
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
UMAP fixes #6316
base: branch-25.04
Are you sure you want to change the base?
UMAP fixes #6316
Conversation
I also reviewed the |
@@ -315,8 +313,6 @@ CUML_KERNEL void optimize_batch_kernel(T const* head_embedding, | |||
auto grad_d = T(0.0); | |||
if (repulsive_grad_coeff > T(0.0)) | |||
grad_d = clip<T>(repulsive_grad_coeff * (current[d] - negative_sample[d]), T(-4.0), T(4.0)); | |||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still curious about this change- I want to make sure we're not sacrificing the numerical stability by changing this based on limited evidence. What is the reason for changing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a clear mistake here.
Here is the reference implementation : https://github.com/lmcinnes/umap/blob/a012b9d8751d98b94935ca21f278a54b3c3e1b7f/umap/layouts.py#L181
Yes, that's exactly why. I've verified this many times in the past and it should be equivalent w/ this logic. We don't remove the self-loop until later to save memory. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## branch-25.04 #6316 +/- ##
===============================================
Coverage ? 67.07%
===============================================
Files ? 202
Lines ? 13076
Branches ? 0
===============================================
Hits ? 8771
Misses ? 4305
Partials ? 0 ☔ View full report in Codecov by Sentry. |
No description provided.