-
Notifications
You must be signed in to change notification settings - Fork 229
[MRG] Refactor the metric() method #152
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
bellet
merged 26 commits into
scikit-learn-contrib:master
from
wdevazelhes:feat/metric_func
Jan 29, 2019
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
a3384b1
MAINT Rename metric() into get_mahalanobis_matrix()
8e0d197
ENH: refactor methods to get the metric
6dd118e
DOC: change description of distance into pseudo-metric
c7e40f6
MAINT: make description clearer
1947ea5
ENH: enhance description
bee6902
MAINT: remove the 1D part in case we allow 2D
646cf97
FIX: fix expression for mahalanobis distance
00d37c9
TST: Add tests
c9eefb4
ENH: deal with the 1D case
bd6aac0
Rename forgotten point 1 and point 2 to u and v
22141f5
Merge branch 'master' into feat/metric_func
9e447f6
STY: Fix PEP8 errors
201320b
Address all comments
4b660fa
Revert changes in metric_plotting included by mistake
61a33cc
FIX: use custom validate_vector
72153ed
TST: fix syntax error for assert in test
d943406
Add tolerance for triangular inequality because MMC probably projecte…
d2c0614
MAINT: address comments from review https://github.com/metric-learn/m…
5e29295
ENH: add squared option
92669ae
FIX fix test that was failing du to a non 2D transformer:
a2955e0
FIX: remove message that is not supported anymore by python newer ver…
c8708b2
TST: make shape testing more precise
7d4efd9
TST: enforce the 2d transformer test for everyone, and make it pass f…
0c7c5dc
TST: fix typo in removing
7dfd874
Remove unnecessary calls of np.atleast2d
80c2943
Add functions to commented doc
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
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.
same updates as above