Skip to content

Explicit dependence on gramians#280

Merged
ValerianRey merged 11 commits intomainfrom
aggregastion-explicit-gramians
Apr 26, 2025
Merged

Explicit dependence on gramians#280
ValerianRey merged 11 commits intomainfrom
aggregastion-explicit-gramians

Conversation

@PierreQuinton
Copy link
Copy Markdown
Contributor

@PierreQuinton PierreQuinton commented Mar 29, 2025

All aggregators can be computed from the Gramian except:

These commits makes this dependence explicit for all aggregators that do depend on the input matrix, for the rest (mean, sum, random and constant) it can obviously be done but computing the Gramian induces extra computations.

@PierreQuinton PierreQuinton added package: aggregation cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements labels Mar 29, 2025
@PierreQuinton PierreQuinton added this to the Gramian style milestone Mar 29, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/torchjd/aggregation/aligned_mtl.py 100.00% <100.00%> (ø)
src/torchjd/aggregation/cagrad.py 100.00% <100.00%> (ø)
src/torchjd/aggregation/imtl_g.py 100.00% <100.00%> (ø)
src/torchjd/aggregation/krum.py 100.00% <100.00%> (ø)
src/torchjd/aggregation/mgda.py 100.00% <100.00%> (ø)
src/torchjd/aggregation/pcgrad.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PierreQuinton PierreQuinton force-pushed the aggregastion-explicit-gramians branch from b90928e to 13f38f2 Compare April 6, 2025 09:03
@PierreQuinton PierreQuinton changed the base branch from main to change-gramian-normalization-to-frobenius-norm April 6, 2025 09:04
@PierreQuinton PierreQuinton force-pushed the aggregastion-explicit-gramians branch 2 times, most recently from e32ad14 to 526681c Compare April 8, 2025 18:50
@PierreQuinton PierreQuinton force-pushed the change-gramian-normalization-to-frobenius-norm branch from ac8ddd3 to ee06659 Compare April 10, 2025 06:47
Base automatically changed from change-gramian-normalization-to-frobenius-norm to main April 10, 2025 11:56
@PierreQuinton PierreQuinton force-pushed the aggregastion-explicit-gramians branch from 526681c to e44d738 Compare April 23, 2025 12:28
@ValerianRey
Copy link
Copy Markdown
Contributor

I really like the way this is going: you're making internal changes that will make it much easier to make architectural changes!

@ValerianRey
Copy link
Copy Markdown
Contributor

This looks ready for a merge after my comments are resolved! Or is there more things you want to do? (I see this is still a draft PR).

@PierreQuinton PierreQuinton marked this pull request as ready for review April 23, 2025 21:21
@ValerianRey ValerianRey merged commit aa87f95 into main Apr 26, 2025
15 checks passed
@ValerianRey ValerianRey deleted the aggregastion-explicit-gramians branch April 26, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cc: refactor Conventional commit type for any refactoring, not user-facing, and not typing or perf improvements package: aggregation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants