Skip to content

DOC added a warning to maxabs_scale to prevent data leakage#17487

Merged
thomasjpfan merged 2 commits intoscikit-learn:masterfrom
krumeto:warning_preprocessing_functions
Jun 6, 2020
Merged

DOC added a warning to maxabs_scale to prevent data leakage#17487
thomasjpfan merged 2 commits intoscikit-learn:masterfrom
krumeto:warning_preprocessing_functions

Conversation

@krumeto
Copy link
Copy Markdown
Contributor

@krumeto krumeto commented Jun 6, 2020

Reference Issues/PRs #17402

What does this implement/fix? Explain your changes.

I added a warning to maxabs_scale suggesting users to use MaxAbsScaler in Pipeline instead to prevent data leakage

Any other comments?

cc: (pair programming partner) @CeeThinwa

Copy link
Copy Markdown
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @krumeto and @CeeThinwa, looks good!

will wait for CI to go green before merging

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR @krumeto and @CeeThinwa !

@thomasjpfan thomasjpfan merged commit 715e240 into scikit-learn:master Jun 6, 2020
@reshamas
Copy link
Copy Markdown
Member

reshamas commented Jun 6, 2020

#DataUmbrella sprint

viclafargue pushed a commit to viclafargue/scikit-learn that referenced this pull request Jun 26, 2020
…earn#17487)

* added a warning to maxabs_scale

* Update sklearn/preprocessing/_data.py

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>

Co-authored-by: Krum Arnaudov <krum.arnaudov@amplifyanalytix.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
jayzed82 pushed a commit to jayzed82/scikit-learn that referenced this pull request Oct 22, 2020
…earn#17487)

* added a warning to maxabs_scale

* Update sklearn/preprocessing/_data.py

Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>

Co-authored-by: Krum Arnaudov <krum.arnaudov@amplifyanalytix.com>
Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants