Skip to content

Commit

Permalink
updated optuna
Browse files Browse the repository at this point in the history
  • Loading branch information
Deathn0t committed Feb 19, 2024
1 parent 8227550 commit d1a8349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deephyper_benchmark/search/_mpi_doptuna.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def objective_wrapper(trial):
# Constraints which are considered feasible if less than or equal to zero.
constraints = []
for i, lbi in enumerate(self._moo_lower_bounds):
if lbi is not None:
if lbi is not None and type(output["objective"][i]) is not str:
ci = -(output["objective"][i] - lbi) # <= 0
constraints.append(ci)
trial.set_user_attr("constraints", tuple(constraints))
Expand Down

0 comments on commit d1a8349

Please sign in to comment.