use log-sum-exp in estimate_log_prob_resp to prevent overflow (Ref to #443) - #444
Merged
relf merged 2 commits intoMay 30, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #444 +/- ##
==========================================
- Coverage 77.56% 77.53% -0.03%
==========================================
Files 106 106
Lines 7585 7585
==========================================
- Hits 5883 5881 -2
- Misses 1702 1704 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
relf
approved these changes
May 30, 2026
Member
|
Thanks! |
jagan-nuvai
added a commit
to Nuvai/linfa
that referenced
this pull request
Jul 14, 2026
Pulls in: - e69cd94 linting - 8167a62 fix docs action - 99d8afd Hamerly accelerated K-means (rust-ml#439) - 793a8a8 WASM feature support (rust-ml#438) - ad45826 remove debug trace - 60382a3 Wasserstein distance / Earth Mover's distance (rust-ml#440) - 7fe5c86 log-sum-exp overflow fix (rust-ml#444) Adapted upstream's Hamerly code to work with our ndarray 0.17 / rand 0.9 upgrade. Key changes: - Added F: Weight bound where upstream used F: Float (rand 0.9 API) - Fixed Uniform::new() calls to .unwrap() (rand 0.9 returns Result) - Kept our upgraded dependency versions in Cargo.toml - Added upstream's KMeansAlgorithm enum and Hamerly structs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes #442
For more details, please refer to the PR #443