-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add x log scale for slice plot #120
Add x log scale for slice plot #120
Conversation
@@ -88,10 +94,18 @@ export const GraphSlice: FC<{ | |||
</Select> | |||
</FormControl> | |||
<FormControl component="fieldset" className={classes.formControl}> | |||
<FormLabel component="legend">Log scale:</FormLabel> | |||
<FormLabel component="legend">Log x scale:</FormLabel> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have a better name than Log x scale
, please tell me that.
Thank you for your pull request. |
LGTM! Just one thing: sometimes I need to click the switch twice to turn the log scale off or on. I noticed that we have the same issue in the log scale switch in the HistoryGraph. So probably we should remove the line |
I think it's better to automatically determine |
Agreed. Could we just add an association between x axis scale and the type of distribution so that the graph can switch scale automatically? |
Yes. We can associate x axis scale with the distribution from optuna-dashboard/optuna_dashboard/static/apiClient.ts Lines 45 to 46 in 9053ce9
|
@keisuke-umezawa Can you work on it? |
I will! |
Would this works well if the search space is dynamic and the variable was sampled both with log and uniform distribution? |
Good point 👍 In such a case, I think it's enough just showing in linear scale. |
67d961b
to
b5e1c12
Compare
@chenghuzi I completed implementation. Could you review it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM! Just one thing, probably we can change the label of the log scale switch to specific Y axis.
Overall LGTM! Thanks for your PR @keisuke-umezawa! I'll merge and close this. |
Contributor License Agreement
This repository (
optuna-dashboard
) and Goptuna share common code.This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.
Reference Issues/PRs
To fix the #64
What does this implement/fix? Explain your changes.
Add switch for the log scale of x axis in addition to y axis.
![スクリーンショット 2021-07-15 19 02 52](https://user-images.githubusercontent.com/1277089/125770015-31f571ce-4ed7-4954-8dfd-b63b1570b019.png)