Skip to content

Commit

Permalink
Update recipes/007_benchmarks_advanced.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 authored Dec 12, 2024
1 parent f70980e commit ba4c040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/007_benchmarks_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

###################################################################################################
# Next, define your own problem class by inheriting ``BaseProblem`` class.
# To implement a problem with a dynamic search space, ``__call__(optuna.Trial)`` method must be overridden so that we can define a dynamic search space in the define-by-run manner.
# To implement a problem with a dynamic search space, ``__call__(self, trial: optuna.Trial)`` method must be overridden so that we can define a dynamic search space in the define-by-run manner.
# Please note that ``direcitons`` property must also be implemented.
class DynamicProblem(BaseProblem):
def __call__(self, trial: optuna.Trial) -> float:
Expand Down

0 comments on commit ba4c040

Please sign in to comment.