Skip to content

Commit

Permalink
Update plugins/hydra_optuna_sweeper/hydra_plugins/hydra_optuna_sweepe…
Browse files Browse the repository at this point in the history
…r/_impl.py

Co-authored-by: Jasha10 <[email protected]>
  • Loading branch information
keisuke-umezawa and Jasha10 committed Dec 3, 2023
1 parent 3cb4252 commit 0bf1a98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def create_optuna_distribution_from_override(override: Override) -> Any:
assert value.end is not None
if "log" in value.tags:
if isinstance(value.start, int) and isinstance(value.end, int):
return IntDistribution(int(value.start), int(value.end))
return IntDistribution(int(value.start), int(value.end), log=True)
return FloatDistribution(value.start, value.end, log=True)
else:
if isinstance(value.start, int) and isinstance(value.end, int):
Expand Down

0 comments on commit 0bf1a98

Please sign in to comment.