-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
MRG fix Normalize for linear models when used with sample_weight #19426
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
ogrisel
merged 63 commits into
scikit-learn:main
from
maikia:normalize_fix_for_sample_weight
Feb 22, 2021
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
d277a43
add ridge to the test + fix the test
maikia 03695d7
changing alpha for ridgh in a pipeline
maikia 66cf82d
updated the test to include update in alpha
maikia 165a5e1
updated normalize to include sample_weight when x is sparse
maikia 4136666
update the old test for the correct normalize
maikia ff266b4
keep working on the pipeline test
maikia b386af7
add test for sparse and sample_weight when testing for _preprocess_data
maikia 2a6c213
corrected test with dtype, 1 test remaining to be corrected
maikia 82c6344
cleanup
maikia 2e69902
Merge branch 'main' into normalize_fix_for_sample_weight
agramfort 187833c
use _incremental_mean_and_var
agramfort 153d5c2
update X_offset and X_var to be of the correct type
maikia ae9ea27
fix some tests
agramfort 53100d4
Merge branch 'normalize_fix_for_sample_weight' of https://github.com/…
agramfort 1f433ac
fix more tests
agramfort 563074e
more fixes
agramfort 0e98592
more fixes
agramfort 29ce060
typo
agramfort 65528f4
factorize code
agramfort 84fbd1a
added whats new
maikia 61702a9
nitpick on what's new
agramfort 9b9ee56
Update sklearn/linear_model/tests/test_base.py
maikia e7b6e92
restructuring the code (if normalize separate)
maikia b366488
remove del x_var
maikia e055335
update the docstring of the test
maikia 0db7fe1
Update sklearn/linear_model/tests/test_base.py
maikia ca6ca07
Merge branch 'main' of https://github.com/scikit-learn/scikit-learn i…
maikia faaec9c
improve the docstrings of the tests
maikia f9f2b87
Update sklearn/linear_model/tests/test_coordinate_descent.py
maikia 1e41bbd
change the order of the params
maikia 06035b7
add inplace in function name to make it explicit
agramfort dcce147
Merge branch 'main' of https://github.com/scikit-learn/scikit-learn i…
maikia 102a6d8
Merge branch 'normalize_fix_for_sample_weight' of https://github.com/…
maikia f5fd4d1
Update sklearn/linear_model/tests/test_base.py
maikia 53a8d53
Update sklearn/linear_model/tests/test_base.py
maikia 15f5ad7
change checking name of the model for isinstance()
maikia 9ac0a66
update the test
maikia 75025b9
cleanup
maikia b29d37f
update X update
maikia cfe824d
Update sklearn/linear_model/tests/test_coordinate_descent.py
maikia 2efe5c3
cleanup
maikia 47d2d2d
Merge branch 'main' of https://github.com/scikit-learn/scikit-learn i…
maikia e062745
towards comparing the results of the StandardScaler and _preprocess_data
maikia 4733d97
fix the test
maikia e420f7e
Merge branch 'main' of https://github.com/scikit-learn/scikit-learn i…
maikia 66ac297
clean up the tests according to the reviewer guidelines
maikia 32ebc77
more readibility improvements
maikia 760285c
add more comments to the test
maikia 41f32b8
improve further the test readibility
maikia 0ab04c2
move standardscaler test to the end + add explanation
maikia d34ab61
Update sklearn/linear_model/tests/test_base.py
maikia 013ca97
add edge test cases
maikia 2f6553c
cleaning up
maikia 4a8938a
dealing with first edge case
maikia 9861065
numerical error dealt with in tests
maikia 0b88fd6
cleanup
maikia 19548ad
comment out troublesome edge test case
maikia 3dd0c92
Merge branch 'main' of https://github.com/scikit-learn/scikit-learn i…
maikia 7cd9e51
Fix handling of near constant features
ogrisel 7cdb76f
Merge branch 'main' into normalize_fix_for_sample_weight
ogrisel 596c036
Update sklearn/linear_model/tests/test_base.py
ogrisel 1c89564
Reenable failing edge case
ogrisel b0a9090
Disable constant non-zero edge case in tests
ogrisel 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
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.
Uh oh!
There was an error while loading. Please reload this page.