Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use log axis if parameter's distribution is log scale #64

Closed
toshihikoyanase opened this issue Mar 29, 2021 · 0 comments · Fixed by #348
Closed

Use log axis if parameter's distribution is log scale #64

toshihikoyanase opened this issue Mar 29, 2021 · 0 comments · Fixed by #348
Labels
contribution-welcome Welcome your contributions enhancement New feature or request good-first-issue Good first issue for contribution.

Comments

@toshihikoyanase
Copy link
Member

Feature Request

Related to optuna/optuna#666.

Motivation

Currently, the slice plot is always shown in linear scale. The parameters in LogUniformDistribution or IntLogUniformDistribution tend to be plotted around left-edge, and it is sometimes difficult for users to analyze results. On the other hand, Optuna's visualization function automatically uses log axes for such parameters.

For example, the following slice plots are rendered using optuna/examples/pytorch/pytorch_simple.py. Optuna's plot visualizes the peak between 0.001 to 0.01 more clearly than Oputna-dashboard's figure.

(To write the results to the RDBStorage, following fix is required.)

--- a/examples/pytorch/pytorch_simple.py
+++ b/examples/pytorch/pytorch_simple.py
@@ -123,7 +123,7 @@ def objective(trial):
 
 
 if __name__ == "__main__":
-    study = optuna.create_study(direction="maximize")
+    study = optuna.create_study(direction="maximize", storage="sqlite:///foo.db")
     study.optimize(objective, n_trials=100, timeout=600)
 
     pruned_trials = study.get_trials(deepcopy=False, states=[TrialState.PRUNED])

Optuna Dashboard
image

Optuna
image

Description

Please convert axes to the log scale when parameters' distributions are log scale.

@toshihikoyanase toshihikoyanase added the enhancement New feature or request label Mar 29, 2021
@c-bata c-bata added the contribution-welcome Welcome your contributions label Mar 29, 2021
@c-bata c-bata pinned this issue Apr 9, 2021
@c-bata c-bata unpinned this issue Apr 21, 2022
@c-bata c-bata added the good-first-issue Good first issue for contribution. label May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution-welcome Welcome your contributions enhancement New feature or request good-first-issue Good first issue for contribution.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants