Skip to content

Commit

Permalink
docs: comment readability
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Nov 14, 2023
1 parent 2f76b2a commit 590a946
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def suggest_hyperparameters(self, trial: optuna.Trial) -> dict[str, Any]:
suggester_names = list(suggester_dict.keys())
optuna_key = ".".join(
suggester_names,
) # We want the optuna key to be unique for each space, so it knows to optimise them individually
)
# We want the optuna key to be unique for each space, so it knows to optimise them individually

suggester_name: str = trial.suggest_categorical(optuna_key, suggester_names) # type: ignore # We know this is a string, because it must suggest from the suggester_names. Optuna should type-hint with a generic, but haven't. MB has created an issue here: https://github.com/optuna/optuna/issues/5104

Expand Down

0 comments on commit 590a946

Please sign in to comment.