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

Add constraints for history plot #529

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

hrntsm
Copy link
Collaborator

@hrntsm hrntsm commented Jul 27, 2023

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.

  • I agree this patch may be ported to Goptuna by other Goptuna contributors.

Reference Issues/PRs

Support constraint in optimization history plot like #525

What does this implement/fix? Explain your changes.

Both plots for the study alone and comparison plots were made to take into account the constraints.

Screenshot 2023-07-27 at 21 04 04 Screenshot 2023-07-27 at 21 04 47

Copy link
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hrntsm Thank you for your pull request! Looks almost good to me. I left one suggestion though.

name: "Infeasible Trial",
marker: {
size: markerSize,
color: "#cccccc",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] #cccccc might be a bit too light in Dark mode. What do you think about using #666666 in dark mode instead?

Screenshot 2023-07-28 10 00 04 Screenshot 2023-07-28 9 59 58
Suggested change
color: "#cccccc",
color: mode === "dark" ? "#666666" : "#cccccc",

Then the history plot will be rendered like below:

Screenshot 2023-07-28 10 07 13

name: `Infeasible Trial of ${h.study_name}`,
marker: {
size: markerSize,
color: "#cccccc",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

@hrntsm
Copy link
Collaborator Author

hrntsm commented Jul 28, 2023

Updated colors. It's easier to see now.

Copy link
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@c-bata c-bata merged commit b9d6feb into optuna:main Jul 28, 2023
@hrntsm hrntsm deleted the Add_constraints_for_history branch July 29, 2023 12:44
@c-bata c-bata mentioned this pull request Jul 31, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants