-
-
Notifications
You must be signed in to change notification settings - Fork 26k
FEAT Support precomputed distance matrix for PairwiseDistancesReductions
#29483
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
Open
kyrajeep
wants to merge
84
commits into
scikit-learn:main
Choose a base branch
from
kyrajeep:feat_precomputed
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
722033c
Co-authored-by: @jjerphan Add initial commit
adam2392 124a8dc
Merge branch 'main' into precomputed
adam2392 cd1e146
Merge branch 'main' into precomputed
kyrajeep 046898b
Add precomputed option in dispatcher classes
kyrajeep 02b5145
comments, questions, code to feature precomputed and maintain class h…
kyrajeep d32e593
Merge branch 'scikit-learn:main' into feat_precomputed
kyrajeep 5351d1a
Add the precomputed option in argkmin_classmode
kyrajeep 5c71f6d
Merge remote-tracking branch 'refs/remotes/origin/feat_precomputed' i…
kyrajeep 50b95ea
Update is_usable_for to use the dispatcher for precomputed
kyrajeep 096ab56
Changed the name from distance_matrix to precomputed_distance
kyrajeep 194ac01
Start of changing BaseDistancesReduction superclass
kyrajeep de74336
Add the function to return the precomputed matrix
kyrajeep e7c1e52
Merge branch 'scikit-learn:main' into feat_precomputed
kyrajeep f2f31ea
Merge branch 'scikit-learn:main' into feat_precomputed
kyrajeep f239c24
Add to BaseDistanceReduction the function to take in and return a pre…
kyrajeep d961e3b
Add comments to work on the subclass of DatasetsPair
kyrajeep 316c72a
Alter the compute method of ArgKminClassMode to take in precomputed m…
kyrajeep 3a027c7
Delete `venv_sklearn`
jjerphan a9fc4a8
Delete a line regarding precomputed since this file is not to be changed
kyrajeep c57f2d5
Merge remote-tracking branch 'refs/remotes/origin/feat_precomputed' i…
kyrajeep a7d14d2
Merge branch 'scikit-learn:main' into feat_precomputed
kyrajeep 08c62c4
Update sklearn/metrics/_pairwise_distances_reduction/_datasets_pair.p…
kyrajeep 43bb4fc
Add venv/ to ignore my local virtual environment
kyrajeep c435341
Merge branch 'feat_precomputed' of https://github.com/kyrajeep/scikit…
kyrajeep 7126430
Write the methods to fulfill the abstract class requirements
kyrajeep 56e09e9
Set default for input data to none and check if provided correctly fo…
kyrajeep 490aa3c
Update the XOR check
kyrajeep ef8e9b5
Modify get_for classmethod
kyrajeep 2d01d3e
Modify get_for classmethod
kyrajeep 2bf45c4
Merge branch 'scikit-learn:main' into feat_precomputed
kyrajeep 71106c6
Modify dispatcher's {ArgKmin, RadiusNeighbors}{ClassMode}{32,64} for …
kyrajeep 1fe4007
fixed by the linter black
kyrajeep 979358a
Update sklearn/metrics/_pairwise_distances_reduction/_datasets_pair.p…
kyrajeep 6728d12
Correct the syntax as requested
kyrajeep 05766f9
Remove default value of none
kyrajeep 0feb10c
Remove blank lines..
kyrajeep acadf77
Update pyproject.toml
kyrajeep 74adecc
Update the doctring
kyrajeep 9ffc78e
Remove blank lines
kyrajeep c950e07
Remove a questions in comment
kyrajeep fdbe05e
Update .gitignore to not commit a virtual env
kyrajeep d138e45
Remove unnecessary blanks
kyrajeep 7825942
Pass the precomuted matrix as a DatasetsPair object directly
kyrajeep f3a016f
Initial commit to check the precomputed input array size
kyrajeep d0a9021
Added tests to check for NaNs, np.array, data types
kyrajeep 3a3b2ea
Revert some unnecessary type casting
kyrajeep c5e4bfd
Fixing minor issues
kyrajeep bd2d051
Merge branch 'scikit-learn:main' into feat_precomputed
kyrajeep 08f3d0a
Fix the tests
kyrajeep 84a491a
bug fixes regarding data types, variable declaration with cython
kyrajeep 23c5a66
Merge branch 'scikit-learn:main' into feat_precomputed
kyrajeep d3f556f
Delete all venv files
kyrajeep 6dcce7a
Merge branch 'feat_precomputed' of https://github.com/kyrajeep/scikit…
kyrajeep d6670e9
Delete venv_sklearn directory
kyrajeep 0e4eef3
Merge branch 'feat_precomputed' of https://github.com/kyrajeep/scikit…
kyrajeep 7b4980a
Delete a blank line
kyrajeep 18bc6d8
Fix formatting
kyrajeep d255bc5
Fix formatting
kyrajeep b65657c
Remove with gil for precomputed matrix
kyrajeep b26768f
Merge branch 'feat_precomputed' of https://github.com/kyrajeep/scikit…
kyrajeep 45ea5f7
Fix formatting
kyrajeep f0efc37
Add tests for ValueErrors and fix the XOR for the method, is_usable.
kyrajeep 7cbfd7a
Merge branch 'feat_precomputed' of https://github.com/kyrajeep/scikit…
kyrajeep 8f15a44
syntax fix
kyrajeep 38e5b84
syntax fix
kyrajeep a97e0c5
syntax fix
kyrajeep 4d10786
syntax fix
kyrajeep 305a90a
Remove type annotations
kyrajeep b7da97d
Merge branch 'scikit-learn:main' into feat_precomputed
kyrajeep 4334074
Merge branch 'scikit-learn:main' into feat_precomputed
kyrajeep 22c5d14
Revert change
kyrajeep 8143dc5
Revert change
kyrajeep 59eccd4
Merge branch 'feat_precomputed' of https://github.com/kyrajeep/scikit…
kyrajeep c13dc12
Merge branch 'main' into feat_precomputed
kyrajeep eb7bf54
Test the precomputed input against the actual computation for a sample
kyrajeep 8d55978
Add "precomputed" as one of the options for "metric"
kyrajeep 46ece7a
Change DatasetsPair to use the metric option to indicate precomputed
kyrajeep 78244a0
API change to include precomputed as a metric in the base abstract class
kyrajeep 6667775
API change to include precomputed as one of the metrics: check X and Y
kyrajeep 22b8c02
Change API to enable precomputed as a metric and take in X=precompute…
kyrajeep e24eccd
Update tests with the API change
kyrajeep 15319c9
Merge branch 'main' into feat_precomputed
kyrajeep 8d9390c
Merge branch 'main' into feat_precomputed
kyrajeep c9f270d
Merge branch 'main' into feat_precomputed
kyrajeep 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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.