Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler #9380

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
merged 5 commits into from
Jul 18, 2017

Conversation

lodurality
Copy link
Contributor

Reference Issue

Addresses #3846

What does this implement/fix? Explain your changes.

Adds examples to docstrings of MinMaxScaler and StandardScaler

Any other comments?

@jmschrei
Copy link
Member

LGTM, thanks for the contribution!

@jmschrei jmschrei changed the title Added examples to docstrings of MinMaxScaler and StandardScaler [MRG+1] Added examples to docstrings of MinMaxScaler and StandardScaler Jul 16, 2017
@amueller
Copy link
Member

I would emphasize that doing this transformation on test data might lead to data that is out of bounds / not zero mean.

@lodurality
Copy link
Contributor Author

@amueller Good idea, I will remove .scale_ example and add transform example on test data.

@jmschrei
Copy link
Member

You've added the elastic net changes to this PR. Can you remove them?

@lodurality
Copy link
Contributor Author

@jmschrei Done.

--------
>>> from sklearn.preprocessing import MinMaxScaler
>>>
>>> data = [[-1, -1], [-1, -1], [1, 1], [1, 1]]
Copy link
Member

@ogrisel ogrisel Jul 18, 2017

Choose a reason for hiding this comment

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

I think the example would be more informative with some intermediate values and different ranges:

>>> data = [[-1, -1], [0, 2], [1, 5]]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@amueller
Copy link
Member

lgtm

@jmschrei jmschrei changed the title [MRG+1] Added examples to docstrings of MinMaxScaler and StandardScaler [MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler Jul 18, 2017
@jmschrei jmschrei merged commit 93c17f1 into scikit-learn:master Jul 18, 2017
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Aug 6, 2017
…er (scikit-learn#9380)

[MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
…er (scikit-learn#9380)

[MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
…er (scikit-learn#9380)

[MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
…er (scikit-learn#9380)

[MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler
AishwaryaRK pushed a commit to AishwaryaRK/scikit-learn that referenced this pull request Aug 29, 2017
…er (scikit-learn#9380)

[MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
…er (scikit-learn#9380)

[MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
…er (scikit-learn#9380)

[MRG+2] Added examples to docstrings of MinMaxScaler and StandardScaler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants