-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
incremental mean and var for weighted sparse X #18569
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
incremental mean and var for weighted sparse X #18569
Conversation
…into sparse_incremental_mean_and_var
…into sparse_incremental_mean_and_var
…into sparse_incremental_mean_and_var
I have some question before continuing @ogrisel and @agramfort
|
…into sparse_incremental_mean_and_var
…into sparse_incremental_mean_and_var
not clear it's an issue but clearly we do a copy we did not do before
… |
…into sparse_incremental_mean_and_var
@glemaitre @ogrisel this one should be good to go too. |
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.
Mainly style nitpicks (that I will commit) and a request to also tests for dtype=np.float32
+ a question on array allocation dtype.
Beside these, LGTM!
…maikia/scikit-learn into sparse_incremental_mean_and_var
Merged! Thank you very much @maikia and @agramfort. Let's now leverage this in StandardScaler (in a new PR). |
Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org> Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
towards #15601
It adds a possibility to calculate the mean and variance for the sparse
X
withsample_weight