Skip to content

Commit

Permalink
Update package/samplers/hill_climb_search/hill_climb_search.py
Browse files Browse the repository at this point in the history
  • Loading branch information
y0z authored Nov 8, 2024
1 parent 2012e7e commit 37a2d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/samplers/hill_climb_search/hill_climb_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def sample_relative(

criteria = (
neighbor_value < self._current_point_value
if study.direction == "minimize"
if study.direction == optuna.study.StudyDirection.MINIMIZE
else neighbor_value > self._current_point_value
)

Expand Down

0 comments on commit 37a2d49

Please sign in to comment.