-
-
Notifications
You must be signed in to change notification settings - Fork 965
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
Reorder arguments of Trial.suggest_float
.
#1292
Reorder arguments of Trial.suggest_float
.
#1292
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1292 +/- ##
==========================================
+ Coverage 86.73% 86.78% +0.05%
==========================================
Files 95 95
Lines 7438 7438
==========================================
+ Hits 6451 6455 +4
+ Misses 987 983 -4
Continue to review full report at Codecov.
|
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 picking up the TODO. The code changes LGTM but I'm wondering if we shouldn't update the order of the arguments in the corresponding documentation as well.
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.
Quick fix, thanks. LGTM!
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! These changes are LGTM! I will merge this PR after CI checks.
Motivation
This is a followup PR for #1201. It addresses this comment, and makes the order of the
Trial.suggest_float
arguments consistent with theTrial.suggest_int
arguments. I think it is helpful for users if we include this change into v1.5.0.Description of the changes
It reorders the argument of
Trial.suggest_float
. More concretely, it swapslog
forstep
. This change does not affect user code because both of them are keyword-only arguments.