-
-
Notifications
You must be signed in to change notification settings - Fork 26.6k
ENH speedup coordinate descent by avoiding calls to axpy in innermost loop #31956
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d64311e
ENH avoid axpy in enet_coordinate_descent
lorentzenchr 2230141
ENH avoid axpy in sparse_enet_coordinate_descent
lorentzenchr 3517d30
ENH avoid axpy in enet_coordinate_descent_multi_task
lorentzenchr 6b4b72c
DOC extent whatsnew entry of 31880
lorentzenchr 4e02b2b
TST reduce assertion atol to 1e-15
lorentzenchr bbde57c
CLN address review
lorentzenchr 0bbfe47
Merge branch 'main' into cd_remove_one_axpy
lorentzenchr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
10 changes: 6 additions & 4 deletions
10
doc/whats_new/upcoming_changes/sklearn.linear_model/31880.efficiency.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| - :class:`linear_model.ElasticNet`, :class:`linear_model.ElasticNetCV`, | ||
| :class:`linear_model.Lasso` and :class:`linear_model.LassoCV` with `precompute=True` | ||
| (or `precompute="auto"`` and `n_samples > n_features`) are faster to fit by | ||
| avoiding a BLAS level 1 (axpy) call in the inner most loop. | ||
| :class:`linear_model.Lasso`, :class:`linear_model.LassoCV`, | ||
| :class:`linear_model.MultiTaskElasticNet`, | ||
| :class:`linear_model.MultiTaskElasticNetCV`, | ||
| :class:`linear_model.MultiTaskLasso` and :class:`linear_model.MultiTaskLassoCV` | ||
| are faster to fit by avoiding a BLAS level 1 (axpy) call in the innermost loop. | ||
| Same for functions :func:`linear_model.enet_path` and | ||
| :func:`linear_model.lasso_path`. | ||
| By :user:`Christian Lorentzen <lorentzenchr>`. | ||
| By :user:`Christian Lorentzen <lorentzenchr>` :pr:`31956` and | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 think we are still waiting for confirmation of this format.
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.
You can have a look at the rendered docs in the CD, it looks fine.
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 did check in the other PR where I agree it looked fine
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 alternative would be to create
31956.efficiency.rstwith duplicate content (and without referring to any PR number in it). Towncrier should take care of merging entries with identical content and link to both PRs for the single resulting entry.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.
But I agree the rendering looks good, so this solution is fine for me as well.