-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
[MRG] Fix near constant feature detection in StandardScaler and linear models #19788
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
glemaitre
merged 26 commits into
scikit-learn:main
from
jeremiedbb:fix-constant-feature-detection
Apr 14, 2021
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
7d5c4a8
compute weight sum manually to reduce rounding errors
jeremiedbb 2057369
use weights shape
jeremiedbb 4d6ba86
avoid catastrophic cancellation
jeremiedbb 3947456
cln
jeremiedbb eb52ff5
add what's new
jeremiedbb 5c06cc0
Merge branch 'master' into improve-sparse-variance-precision
jeremiedbb fce4257
improve readability, remove 1 unecessary array
jeremiedbb 7b43f52
add comments
jeremiedbb 89ef3f4
improve constant feature detection for standard scaler
jeremiedbb 7834615
cln
jeremiedbb cc40a0c
add ref comment on the correction term
jeremiedbb 88def6e
Merge branch 'master' into fix-constant-feature-detection
jeremiedbb fcb4b57
float64 accumulator for sparse; fix dense float32 upcast
jeremiedbb d47f643
add test
jeremiedbb 063e105
corrected 2 pass alg for dense
jeremiedbb 9c50e0d
what's new
jeremiedbb a944b5f
cln
jeremiedbb 0726fb8
fallback to old less precise code when numpy < 1.6
jeremiedbb b77ed18
Test for different values of n_samples
ogrisel ca7ab15
Even stronger test
ogrisel bb1c728
No need to test constant features many times + better mask name
ogrisel 2ae7b23
adress comments + parametrize mean
jeremiedbb 34e22e5
cln
jeremiedbb d47ab9c
check var is small when detected as cste
jeremiedbb 10a8ac6
fix representable mask + avoid inf var
jeremiedbb b0f590c
address comments
jeremiedbb 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
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.