-
-
Notifications
You must be signed in to change notification settings - Fork 990
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
Benchmaking for multi-objectives samplers #3271
Benchmaking for multi-objectives samplers #3271
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3271 +/- ##
==========================================
- Coverage 91.84% 91.53% -0.32%
==========================================
Files 156 158 +2
Lines 12292 12195 -97
==========================================
- Hits 11290 11163 -127
- Misses 1002 1032 +30
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
Thanks for the PR! I'd like to investigate how to use |
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.
Thanks for the PR! I made some modifications to make it work with the latest Optuna version. Check it out!
@drumehiron PTAL! |
Sorry for the late reply and thank you for review. |
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
benchmarks/run_mo_kurobako.py
Outdated
|
||
# Create study. | ||
cmd = ( | ||
f"{kurobako_cmd} studies --budget 300 " |
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.
I have confirmed that it works well on my computer with --budget 10
.
In the case of -- budget 300
, the computation time is too long, so I haven't checked if it works properly yet.
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.
Agree. How about using the same budget with the existing single-objective one? It is 80. https://github.com/optuna/optuna/blob/master/benchmarks/run_kurobako.py#L69
You can fix the CI error of
|
@nzw0301 Thank you for your review. I fix the points. |
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.
Thanks for the update. I have several comment mainly to enable the sampler-kwargs
option. Please take a look.
benchmarks/run_mo_kurobako.py
Outdated
|
||
os.makedirs(args.out_dir, exist_ok=True) | ||
study_json_filename = os.path.join(args.out_dir, "studies.json") | ||
subprocess.check_call(f"echo >| {study_json_filename}", shell=True) |
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.
Looks good not to use -n
option since it does not work in macOS.
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.
Thank you for checking it.
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com>
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.
Thank you for review. I checked it.
benchmarks/run_mo_kurobako.py
Outdated
|
||
os.makedirs(args.out_dir, exist_ok=True) | ||
study_json_filename = os.path.join(args.out_dir, "studies.json") | ||
subprocess.check_call(f"echo >| {study_json_filename}", shell=True) |
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.
Thank you for checking it.
@contramundum53 Could you review this PR if you have time? |
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.
Thanks for the update! Almost, LGTM. I have several minor comments. PTAL.
benchmarks/mo_create_study.py
Outdated
@@ -0,0 +1,44 @@ | |||
import json |
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.
The benchmarks
directory becomes a bit complicated. How about creating a benchmarks/kurobako
directory and moving mo_create_study.py
into this?
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.
I agree your comments. I move mo_create_study.py
into into benchmarks/kurobako
.
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.
Thanks for your PR! It looks almost good to me. I left some minor comments.
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.
Thank you for review. I will update this PR.
benchmarks/mo_create_study.py
Outdated
@@ -0,0 +1,44 @@ | |||
import json |
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.
I agree your comments. I move mo_create_study.py
into into benchmarks/kurobako
.
Co-authored-by: Hideaki Imamura <38826298+HideakiImamura@users.noreply.github.com> Co-authored-by: contramundum53 <contramundum53@outlook.com>
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.
Thank you!
Maybe we should also change the single-objective version to have budget 120 for consistency, but I think that can be another PR. |
Motivation
#3245
Description of the changes
This PR is extend 'optuna/benchmarks/run_kurobako.py' to multi-objectives.
TODOs:
--sampler-kwargs-list
argument