refactor(aggregation): Add Stateful mixin#647
Conversation
* Make NashMTL, NashMTLWeighting, GradVac and GradVacWeighting inherit from it
|
/opencode:Plan what do you think about this new structure? What would be some alternatives? Please also review the PR. |
PR Review: Add ResettableMixinSummaryThe PR introduces a Changes Overview
What's Good
Potential Alternatives
Minor Suggestions
VerdictApprove ✅ - The implementation is clean, minimal, and follows existing patterns in the codebase. The ABC approach is appropriate here since:
The mixin could be made public if there's user demand for creating custom resettable aggregators, but keeping it private ( |
|
Main question is: should we make this class public and add a documentation entry for it? If it's private, it's just for us, to keep code organized. If it's public, it's also a tool that users could use, but then it bloats the documentation a bit. |
PierreQuinton
left a comment
There was a problem hiding this comment.
LGTM. I would make it public though: users can have a "clean" isinstance condition in their training loop if they want to check if it is resetable, instead of having to check if there is a reset method (or worse, have a list of resetable aggregators).
|
Ok I made it public with a bunch of other changes. I think you're gonna like it. |
|
Fantastic, can merge when ready |



No description provided.