Skip to content

Commit 42a062b

Browse files
committed
Remove optimum marker from Valley-Bowl plots
1 parent 57aacaf commit 42a062b

3 files changed

Lines changed: 0 additions & 15 deletions

File tree

‎tests/trajectories/_objectives.py‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,3 @@ def pareto_set(self, n: int = 1000) -> Tensor:
187187
return torch.stack(
188188
(torch.linspace(-7.0, 7.0, n), torch.full((n,), self.PARETO_SET_X2)), dim=1
189189
)
190-
191-
@property
192-
def optimum(self) -> Tensor:
193-
"""
194-
Pareto-optimal point that (approximately) minimizes the mean of the unscaled objectives. It
195-
does not depend on ``scale`` or ``scale_both_losses``.
196-
"""
197-
return torch.tensor([0.0, self.PARETO_SET_X2])

‎tests/trajectories/plot_params.py‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,6 @@ def main() -> None:
168168
plotter += YAxisLabeller("$x_2$") if j == 0 else YTicksClearer()
169169

170170
plotter(axes[i][j])
171-
if isinstance(objective, ValleyBowl):
172-
axes[i][j].scatter(
173-
*objective.optimum.tolist(), marker="*", color="black", s=45, zorder=10
174-
)
175171

176172
fig.tight_layout(h_pad=-2.5)
177173
print("Saving figure")

‎tests/trajectories/plot_values.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ def main() -> None:
170170
plotter += YAxisLabeller("Objective $2$") if j == 0 else YTicksClearer()
171171

172172
plotter(axes[i][j])
173-
if isinstance(objective, ValleyBowl):
174-
optimum = objective(objective.optimum).numpy()
175-
axes[i][j].scatter(*optimum, marker="*", color="black", s=45, zorder=10)
176173

177174
fig.tight_layout(h_pad=-2.5)
178175
print("Saving figure")

0 commit comments

Comments
 (0)