Skip to content

[MRG] Exclude self from radius queries at large and infinite radii - #786

Merged
charavelg merged 1 commit into
tslearn-team:mainfrom
AryanRG:fix/radius-neighbors-self-exclusion
Nov 2, 2026
Merged

charavelg merged 1 commit into
tslearn-team:mainfrom
AryanRG:fix/radius-neighbors-self-exclusion

Conversation

@AryanRG

@AryanRG AryanRG commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Closes #785.

Exclude implicit queries by row index after radius selection, rather than setting a diagonal sentinel. This handles large and infinite radii without removing other identical samples. Explicit queries keep their existing behavior.

Adds regressions for neighbor membership and distance alignment. Focused and adjacent neighbor tests pass; existing ragged-input failures reproduce on the base commit.

@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.57%. Comparing base (ee25250) to head (923c760).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #786      +/-   ##
==========================================
+ Coverage   96.56%   96.57%   +0.01%     
==========================================
  Files          89       90       +1     
  Lines        9478     9516      +38     
==========================================
+ Hits         9152     9190      +38     
  Misses        326      326              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@charavelg
charavelg merged commit deb0cc1 into tslearn-team:main Nov 2, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

radius_neighbors includes self for large radii and rejects infinite radius

2 participants