-
Notifications
You must be signed in to change notification settings - Fork 532
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
Expose the secondary stopping condition for QN solver #3777
Expose the secondary stopping condition for QN solver #3777
Conversation
We also may need to readjust the default parameter value if we change again the stopping condition logic in #3766 |
d05ac68
to
24684ad
Compare
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.
Code looks good, just a couple of comments about docstrings
24684ad
to
6e5ed6d
Compare
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 Artem for the PR! Looks good overall, just one suggestion: it would make sense to expose delta
in logistic_regression.pyx as well.
I can, but I am not 100% sure we should. Are we sure any other solvers in future will have this parameter as well? We do hide some parameters already, e.g. |
Codecov Report
@@ Coverage Diff @@
## branch-0.20 #3777 +/- ##
==============================================
Coverage ? 85.96%
==============================================
Files ? 225
Lines ? 17000
Branches ? 0
==============================================
Hits ? 14614
Misses ? 2386
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. 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 Artem for updating the PR title and description. Just to note down our offline discussion: you recommend to keep the LogisticRegression API unchanged (not exposing delta
there) because:
- current default is expected to be small enough in comparison to sklearn,
- points mentioned here Expose the secondary stopping condition for QN solver #3777 (comment).
Sounds fair to me.
@gpucibot merge |
- Expose a parameter `delta` of the `QN` solver to control the loss value change stopping condition - Set a reasonable default for the parameter value that should keep the behavior close to sklearn in most cases Note, this change does not expose `delta` to the wrapper class `LogisticRegression`. Note, although this change does not break the python API, it does break the C/C++ API. Contributes to solving rapidsai#3645 Authors: - Artem M. Chirkin (https://github.com/achirkin) Approvers: - Tamas Bela Feher (https://github.com/tfeher) - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#3777
delta
of theQN
solver to control the loss value change stopping conditionNote, this change does not expose
delta
to the wrapper classLogisticRegression
.Note, although this change does not break the python API, it does break the C/C++ API.
Contributes to solving #3645