FairGrad¶
- class torchjd.aggregation.FairGrad(alpha, max_iters=None)[source]¶
GramianWeightedAggregatorusing the step decision of Algorithm 1 of Fair Resource Allocation in Multi-Task Learning.- Parameters:
Note
This aggregator requires optional dependencies. When they are not installed, instantiating it raises an
ImportErrorwith installation instructions. To install them, usepip install "torchjd[fairgrad]".
- class torchjd.aggregation.FairGradWeighting(alpha, max_iters=None)[source]¶
Weighting[PSDMatrix] giving the weights ofFairGrad, as defined in Equation 4 of Fair Resource Allocation in Multi-Task Learning.- Parameters:
Note
This implementation was adapted from the official implementation.
Note
This aggregator requires optional dependencies. When they are not installed, instantiating it raises an
ImportErrorwith installation instructions. To install them, usepip install "torchjd[fairgrad]".