UPGrad¶
- class torchjd.aggregation.UPGrad(pref_vector=None, projector=None)[source]¶
GramianWeightedAggregatorthat projects each row of the input matrix onto the dual cone of all rows of this matrix, and that combines the result, as proposed in Jacobian Descent For Multi-Objective Optimization.- Parameters:
pref_vector (
Tensor|None) – The preference vector used to combine the projected rows. If not provided, defaults to \(\begin{bmatrix} \frac{1}{m} & \dots & \frac{1}{m} \end{bmatrix}^T \in \mathbb{R}^m\).projector (
DualConeProjector|None) – TheDualConeProjectorused to compute the projection.
- class torchjd.aggregation.UPGradWeighting(pref_vector=None, projector=None)[source]¶
Weighting[PSDMatrix] giving the weights ofUPGrad.- Parameters:
pref_vector (
Tensor|None) – The preference vector to use. If not provided, defaults to \(\begin{bmatrix} \frac{1}{m} & \dots & \frac{1}{m} \end{bmatrix}^T \in \mathbb{R}^m\).projector (
DualConeProjector|None) – TheDualConeProjectorused to compute the projection.