-
-
Notifications
You must be signed in to change notification settings - Fork 992
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 a fixed seed value when seed=None
in GridSampler
#5490
Conversation
FYI: This shuffling is introduced in PR #4918. |
When I introduced this PR, I believed that |
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 suggested a change. PTAL.
Co-authored-by: Hiroki Takizawa <contact@hiroki-takizawa.name>
Thank you for your explanation! I agree with you to shuffle the grid! |
Should I add a note or update |
Yes, it would be a great help if you could do that. |
Thanks. Sure! |
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.
LGTM!
This PR makes the order of trials fixed for |
In my current understanding, the requirements can be organized and enumerated as follows:
The second request means that the If we want all processes to have an unique value in a distributed environment, the only way is to share the value using storage and appropriate transaction process. The only time when this is possible is not during This discussion is somewhat complicated, but since it involves historical circumstances and a distributed environment, I believe such complexity is inevitable and unavoidable. To implement the above plan, we need to enable |
After discussion with @not522 -san and others, I have reconsidered the second of the above requirements is not necessary. (It is a little strange that only GridSampler behaves deterministic with |
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 the PR!
I added a suggestion to the doc-string.
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.
Co-authored-by: Naoto Mizuno <gobou522@gmail.com>
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@users.noreply.github.com>
_all_grids
when seed
is givenseed=None
in GridSampler
Thank you for your comments and discussions. I've updated the PR by following the suggestions. |
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 the changes!
I added another nit comment.
Co-authored-by: Shuhei Watanabe <47781922+nabenabe0928@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 your update. It looks good to me.
@nabenabe0928 If you approve this PR, please merge 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.
LGTM!
Motivation
Resolve #5489. I'm happy to hear the opinion on this change because I'm not sure why this shuffle was introduced.
Description of the changes
Remove the shuffle.For distributed optimisation, optuna docs suggest not setting
seed
for samplers or set different values. In this PR, callshuffle
whenseed=0
.