-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
API pairwise_distances will require explicit V/VI param if Y is given #16993
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
Conversation
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
Deprecation until version 0.25. The current approach in `_precompute_metric_params` (https://github.com/scikit-learn/scikit-learn/blob/f82a2cb33871a67b36150647ece1c7e56d3132bb/sklearn/metrics/pairwise.py#L1429-L1444) means that we may be applying a different metric at training and test time. Ideally we'd have a framework for fitting a metric on some specific training data, but in the meantime, this deprecation stops users making mistakes.
adrinjalali
approved these changes
Apr 22, 2020
Are there other metrics where we have a similar pattern? |
Only Gower in progress.
|
thomasjpfan
reviewed
Apr 26, 2020
Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>
Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>
Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>
Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com>
Good to go, @thomasjpfan? |
thomasjpfan
approved these changes
Apr 27, 2020
tagging for inclusion #17010 |
adrinjalali
pushed a commit
that referenced
this pull request
Apr 30, 2020
…#16993) * API pairwise_distances will require explicit V/VI param if Y is given Deprecation until version 0.25. The current approach in `_precompute_metric_params` (https://github.com/scikit-learn/scikit-learn/blob/f82a2cb33871a67b36150647ece1c7e56d3132bb/sklearn/metrics/pairwise.py#L1429-L1444) means that we may be applying a different metric at training and test time. Ideally we'd have a framework for fitting a metric on some specific training data, but in the meantime, this deprecation stops users making mistakes. * DOC update what's new * Update sklearn/metrics/tests/test_pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> * Update sklearn/metrics/pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> * Update sklearn/metrics/pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> * Update sklearn/metrics/tests/test_pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
gio8tisu
pushed a commit
to gio8tisu/scikit-learn
that referenced
this pull request
May 15, 2020
…scikit-learn#16993) * API pairwise_distances will require explicit V/VI param if Y is given Deprecation until version 0.25. The current approach in `_precompute_metric_params` (https://github.com/scikit-learn/scikit-learn/blob/f82a2cb33871a67b36150647ece1c7e56d3132bb/sklearn/metrics/pairwise.py#L1429-L1444) means that we may be applying a different metric at training and test time. Ideally we'd have a framework for fitting a metric on some specific training data, but in the meantime, this deprecation stops users making mistakes. * DOC update what's new * Update sklearn/metrics/tests/test_pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> * Update sklearn/metrics/pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> * Update sklearn/metrics/pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> * Update sklearn/metrics/tests/test_pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
viclafargue
pushed a commit
to viclafargue/scikit-learn
that referenced
this pull request
Jun 26, 2020
…scikit-learn#16993) * API pairwise_distances will require explicit V/VI param if Y is given Deprecation until version 0.25. The current approach in `_precompute_metric_params` (https://github.com/scikit-learn/scikit-learn/blob/f82a2cb33871a67b36150647ece1c7e56d3132bb/sklearn/metrics/pairwise.py#L1429-L1444) means that we may be applying a different metric at training and test time. Ideally we'd have a framework for fitting a metric on some specific training data, but in the meantime, this deprecation stops users making mistakes. * DOC update what's new * Update sklearn/metrics/tests/test_pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> * Update sklearn/metrics/pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> * Update sklearn/metrics/pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> * Update sklearn/metrics/tests/test_pairwise.py Co-Authored-By: Thomas J Fan <thomasjpfan@gmail.com> Co-authored-by: Thomas J Fan <thomasjpfan@gmail.com>
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.
Deprecation until version 0.25.
The current approach in
_precompute_metric_params
(
scikit-learn/sklearn/metrics/pairwise.py
Lines 1429 to 1444 in f82a2cb
means that we may be applying a different metric at training and test
time. Ideally we'd have a framework for fitting a metric on some
specific training data, but in the meantime, this deprecation stops
users making mistakes.