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

Skip to content

[MRG+1] Deprecating the use of size_threshold parameter in manhattan_distances #9295

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 4 commits into from
Jul 13, 2017

Conversation

pravarmahajan
Copy link
Contributor

@pravarmahajan pravarmahajan commented Jul 7, 2017

Reference Issue

Fixes: #9291

What does this implement/fix? Explain your changes.

Added a deprecation warning for using size_threshold parameter in manhattan_distance. Modified the corresponding test function.

Any other comments?

@jnothman jnothman changed the title [MRG] Deprecating the use of size_threshold parameter in manhattan_distances [MRG+1] Deprecating the use of size_threshold parameter in manhattan_distances Jul 8, 2017
@jnothman jnothman added this to the 0.19 milestone Jul 12, 2017
@@ -518,6 +519,10 @@ def manhattan_distances(X, Y=None, sum_over_features=True,
array([[ 1., 1.],
[ 1., 1.]]...)
"""
if size_threshold is not None:
warnings.warn('Use of the "size_threshold" is deprecated '
Copy link
Member

Choose a reason for hiding this comment

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

can you please explicitly mention the version in which it is deprecated (0.19) and the one in which it will be removed (0.21)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, will do it.

@amueller
Copy link
Member

thanks :)

@amueller amueller merged commit 9f9ad18 into scikit-learn:master Jul 13, 2017
jnothman pushed a commit to jnothman/scikit-learn that referenced this pull request Aug 6, 2017
…distances (scikit-learn#9295)

* deprecating size_threshold in manhattan_distances

* fixing a minor pep8 error

* version number for deprecation
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
…distances (scikit-learn#9295)

* deprecating size_threshold in manhattan_distances

* fixing a minor pep8 error

* version number for deprecation
dmohns pushed a commit to dmohns/scikit-learn that referenced this pull request Aug 7, 2017
…distances (scikit-learn#9295)

* deprecating size_threshold in manhattan_distances

* fixing a minor pep8 error

* version number for deprecation
NelleV pushed a commit to NelleV/scikit-learn that referenced this pull request Aug 11, 2017
…distances (scikit-learn#9295)

* deprecating size_threshold in manhattan_distances

* fixing a minor pep8 error

* version number for deprecation
paulha pushed a commit to paulha/scikit-learn that referenced this pull request Aug 19, 2017
…distances (scikit-learn#9295)

* deprecating size_threshold in manhattan_distances

* fixing a minor pep8 error

* version number for deprecation
AishwaryaRK pushed a commit to AishwaryaRK/scikit-learn that referenced this pull request Aug 29, 2017
…distances (scikit-learn#9295)

* deprecating size_threshold in manhattan_distances

* fixing a minor pep8 error

* version number for deprecation
maskani-moh pushed a commit to maskani-moh/scikit-learn that referenced this pull request Nov 15, 2017
…distances (scikit-learn#9295)

* deprecating size_threshold in manhattan_distances

* fixing a minor pep8 error

* version number for deprecation
jwjohnson314 pushed a commit to jwjohnson314/scikit-learn that referenced this pull request Dec 18, 2017
…distances (scikit-learn#9295)

* deprecating size_threshold in manhattan_distances

* fixing a minor pep8 error

* version number for deprecation
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.

size_threshold in manhatten_distances?
3 participants