Skip to content

Commit 40eb313

Browse files
committed
minor fixes
1 parent d17443a commit 40eb313

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/torchjd/scalarization/_pbi.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ class PBI(Scalarizer):
1616
direction and a component perpendicular to it, and penalizes the latter:
1717
1818
.. math::
19-
d_1 = (L - z^*)^\top \hat r, \qquad
20-
d_2 = \lVert (L - z^*) - d_1 \hat r \rVert, \qquad
19+
d_1 = (L - z^*)^\top \hat w, \qquad
20+
d_2 = \lVert (L - z^*) - d_1 \hat w \rVert, \qquad
2121
d_1 + \theta\, d_2,
2222
2323
where:
2424
2525
- :math:`L_i` is the :math:`i`-th input value (the :math:`i`-th objective);
2626
- :math:`z^*` is the reference (ideal) point (the ``reference`` parameter);
27-
- :math:`\hat r = r / \lVert r \rVert` is the normalized preference direction (the ``weights``
27+
- :math:`\hat w = w / \lVert w \rVert` is the normalized preference direction (the ``weights``
2828
parameter);
2929
- :math:`d_1` is the distance along the preference direction and :math:`d_2` is the distance to
3030
it;
@@ -34,7 +34,7 @@ class PBI(Scalarizer):
3434
be non-negative. A value of ``0`` reduces PBI to the projection onto the preference
3535
direction. The paper uses ``5`` in its experiments; there is no single best value, and the
3636
paper notes that a too large or too small value worsens the result.
37-
:param weights: The preference vector :math:`r`, giving the direction along which the values are
37+
:param weights: The preference vector :math:`w`, giving the direction along which the values are
3838
decomposed. Its values should be non-negative. It must have the same shape as the values
3939
passed at call time. To approximate the whole Pareto front rather than a single trade-off, it
4040
should be re-sampled from a Dirichlet distribution and reassigned before every call, e.g. for

0 commit comments

Comments
 (0)