Skip to content

Fix index retention in _tensor_truth function#302

Merged
PauBadiaM merged 3 commits intoscverse:mainfrom
robinfallegger:patch-3
Apr 13, 2026
Merged

Fix index retention in _tensor_truth function#302
PauBadiaM merged 3 commits intoscverse:mainfrom
robinfallegger:patch-3

Conversation

@robinfallegger
Copy link
Copy Markdown
Contributor

Ensure the grts retains original index after pivoting. Currently shuffles grout truth tensor compared to activities inferred by decouple

robinfallegger and others added 3 commits April 10, 2026 09:44
Ensure the grts retains original index after pivoting. Currently shuffles grout truth tensor compared to activities inferred by decouple
The index-alignment fix in _tensor_truth exposed that metrics5 was
accidentally passing due to misaligned ground truth. With groupby="group",
every source within each group has homogeneous perturbation (all 1s or
all 0s), producing no metrics. Using "class" (which mixes groups A and B)
ensures heterogeneous ground truth for meaningful source-level evaluation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@PauBadiaM PauBadiaM merged commit 00b288a into scverse:main Apr 13, 2026
15 of 16 checks passed
PauBadiaM added a commit that referenced this pull request Apr 13, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.31%. Comparing base (6e18630) to head (54b4453).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #302      +/-   ##
==========================================
- Coverage   94.31%   94.31%   -0.01%     
==========================================
  Files          78       78              
  Lines        4079     4078       -1     
==========================================
- Hits         3847     3846       -1     
  Misses        232      232              
Files with missing lines Coverage Δ
src/decoupler/bm/_run.py 89.24% <100.00%> (ø)

... and 1 file with indirect coverage changes

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

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.

3 participants