You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So CAGrad(c=10) and CAGrad(c=100) get the same name, which is wrong for both. This matters when str(aggregator) is used to name experiments or plot curves.
Suggested fix
def__str__(self) ->str:
returnf"CAGrad{self.c:g}"
This gives CAGrad10, CAGrad100, CAGrad0, CAGrad1 and CAGrad0.5, so the existing assertion str(CAGrad(c=0.5)) == "CAGrad0.5" still holds.
Checklist
Fix CAGrad.__str__ in src/torchjd/aggregation/_cagrad.py.
Activity
adityawaghamare commentedon Oct 8, 2026