[MRG + 1] ENH: preprocess: adding a max-normalization option#4695
Merged
GaelVaroquaux merged 4 commits intoscikit-learn:masterfrom May 11, 2015
Merged
[MRG + 1] ENH: preprocess: adding a max-normalization option#4695GaelVaroquaux merged 4 commits intoscikit-learn:masterfrom
GaelVaroquaux merged 4 commits intoscikit-learn:masterfrom
Conversation
This still needs tests and doc updates.
Contributor
Author
|
Ah, older scipy versions don't have a |
Member
|
Column-wise max? I guess why not. I think you should use |
Contributor
Author
|
Thanks! Travis is happy now. |
Member
There was a problem hiding this comment.
I feel like we should raise a ValueError "else". If you could add that and add a test, it would be much appreciated.
Member
There was a problem hiding this comment.
Never mind, missed the check above.
Member
|
lgtm. |
Member
|
LGTM. Merging. Thanks! |
GaelVaroquaux
added a commit
that referenced
this pull request
May 11, 2015
[MRG + 1] ENH: preprocess: adding a max-normalization option
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I've found that max-normalization is about as common as l1 or l2 normalization in my work, so I added that option to the
preprocessing.normalize()function.