-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[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
Conversation
@@ -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 ' |
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.
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)
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.
Sure, will do it.
thanks :) |
…distances (scikit-learn#9295) * deprecating size_threshold in manhattan_distances * fixing a minor pep8 error * version number for deprecation
…distances (scikit-learn#9295) * deprecating size_threshold in manhattan_distances * fixing a minor pep8 error * version number for deprecation
…distances (scikit-learn#9295) * deprecating size_threshold in manhattan_distances * fixing a minor pep8 error * version number for deprecation
…distances (scikit-learn#9295) * deprecating size_threshold in manhattan_distances * fixing a minor pep8 error * version number for deprecation
…distances (scikit-learn#9295) * deprecating size_threshold in manhattan_distances * fixing a minor pep8 error * version number for deprecation
…distances (scikit-learn#9295) * deprecating size_threshold in manhattan_distances * fixing a minor pep8 error * version number for deprecation
…distances (scikit-learn#9295) * deprecating size_threshold in manhattan_distances * fixing a minor pep8 error * version number for deprecation
…distances (scikit-learn#9295) * deprecating size_threshold in manhattan_distances * fixing a minor pep8 error * version number for deprecation
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?