-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
ENH replace Cython loss functions in SGD part 2 #28029
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
ENH replace Cython loss functions in SGD part 2 #28029
Conversation
mainly name changes: - loss(..) -> cy_loss(..) - dloss(..) -> cy_gradient(..)
asv benchmarks
|
The failing tests seem to be caused by #28046. |
There are conflict to resolve before being able to confirm if the merge of #28046 makes the tests pass. |
@lorentzenchr would it be okay if I work on these PRs to take them forward? |
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. Thank you @lorentzenchr
The tests are passing and the benchmarks show no regression.
@@ -1,26 +0,0 @@ | |||
# SPDX-License-Identifier: BSD-3-Clause |
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.
Let's assume no other external project was using those functions.
Thanks for the review Julien. I fixed the typo. I'll let you merge after having another look. |
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
Reference Issues/PRs
Follow-up of #27999 (which needs to be merged first). Partly addresses #15123.
What does this implement/fix? Explain your changes.
This PR replaces the Cython loss functions of SGD and SAGA with the ones from
_loss
(SquaredLoss, Huber, LogLoss) and inherits from_loss._loss.CyLossFunction
for the remaining ones (Hinge, ..., and Multinomial).Also, the loss functions form
sklearn.linear_model.__init__
are removed.Any other comments?
Only merge after release 1.5, i.e. this PR is to be released with v1.6.