Skip to content

Conversation

@aristizabal95
Copy link

Before this fix uniform sampling is not guaranteed, over-representing the first combination of neighbors, and not sampling the last possible combination.

This PR ensures all neighbor combinations are considered during sampling, by extending the range of possible indices to include the last element.

Referencing to the example showcased in #385, using this change the sampling distribution is now:

(0, 1) 0.1707 (0, 2) 0.1643 (0, 3) 0.165 (1, 2) 0.1639 (1, 3) 0.1693 (2, 3) 0.1668 

Closes #385.

Before this fix uniform sampling is not guaranteed, over-representing the first combination of neighbors, and not sampling the last possible combination Co-authored-by: Jaime Mosquera Gutiérrez <Jaimemosg@users.noreply.github.com> Co-authored-by: Andres Uriza <pa-uriza@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 1, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.09%. Comparing base (2d55981) to head (9d916ed).
Report is 4 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@ Coverage Diff @@ ## master #386 +/- ## ======================================= Coverage 73.09% 73.09% ======================================= Files 29 29 Lines 1171 1171 ======================================= Hits 856 856 Misses 315 315 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@github-actions
Copy link

This pull request had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity.

@github-actions github-actions bot added the stale label May 22, 2025
@aristizabal95
Copy link
Author

We believe this is still relevant. @rusty1s let us know if you have any thoughts on this

@github-actions github-actions bot removed the stale label May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants