Skip to content

Fix BW geodesic and add pyriemann comparison tests#2

Merged
bruAristimunha merged 2 commits intomainfrom
test/pyriemann-comparison
Feb 10, 2026
Merged

Fix BW geodesic and add pyriemann comparison tests#2
bruAristimunha merged 2 commits intomainfrom
test/pyriemann-comparison

Conversation

@bruAristimunha
Copy link
Contributor

Summary

  • Fix incorrect Bures-Wasserstein geodesic cross-term: was using M + M^T (= 2M) instead of (AB)^{1/2} + (BA)^{1/2} (= A^{1/2} M A^{-1/2} + A^{-1/2} M A^{1/2})
  • Add 82 comparison tests validating spd_learn against pyriemann across matrix ops, distances, geodesics, means, and log/exp maps
  • Add pyriemann to test dependencies

Test plan

  • pytest tests/test_pyriemann_comparison.py — 82 passed
  • pytest tests/test_transport.py — 74 passed (no regressions)
  • ruff check clean

The BW geodesic cross-term was incorrectly using M + M^T (where M is
symmetric, so this equals 2M) instead of (AB)^{1/2} + (BA)^{1/2}.
The correct cross-term is A^{1/2} M A^{-1/2} + A^{-1/2} M A^{1/2}.

Add 82 comparison tests validating spd_learn against pyriemann for
matrix ops, distances, geodesics, means, and log/exp maps.
Add pyriemann to test dependencies.
Reformat test_pyriemann_comparison.py with ruff to fix pre-commit check.
Add continue-on-error to the docs workflow PR comment step so transient
GitHub API 429 errors don't fail the build.
@github-actions
Copy link

📚 Documentation Preview

📦 Download Documentation Artifact

Download the documentation-html artifact from the workflow run to view the docs locally.

💡 To enable live previews, add a SURGE_TOKEN secret to this repository. See surge.sh for setup instructions.

@bruAristimunha bruAristimunha merged commit a9e23c3 into main Feb 10, 2026
11 checks passed
@bruAristimunha bruAristimunha deleted the test/pyriemann-comparison branch February 10, 2026 10:39
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.

1 participant