-
-
Notifications
You must be signed in to change notification settings - Fork 26.4k
ENH Adds PyTorch support to LinearDiscriminantAnalysis #25956
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
betatim
merged 47 commits into
scikit-learn:main
from
thomasjpfan:array_api_compat_lda_pr
Apr 21, 2023
+457
−162
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
73bd27c
ENH Adds PyTorch support to LinearDiscriminantAnalysis
thomasjpfan e8937e9
DOC Adds PR number
thomasjpfan 18d6aa9
CI Do not follow imports for vendored files
thomasjpfan 8678389
CI Do not check imports in externals._array_api_compat
thomasjpfan 873f46e
CI Fix Failures
thomasjpfan ef20a47
CLN Address comments
thomasjpfan 52fdd99
API Move array_api_compat to optional dependency
thomasjpfan 6a76f17
Merge remote-tracking branch 'upstream/main' into array_api_compat_ld…
thomasjpfan 2ae9363
FIX Fixes issue with string or python dtype args
thomasjpfan 42b04f8
CLN Rename is_array_api to is_array_api_compliant
thomasjpfan 5412077
CLN Improve support for dtypes that are not dtype objects
thomasjpfan e5c2c41
CLN Reduce diff
thomasjpfan 0efbb85
ENH Check array_api_compat installation
thomasjpfan 075ce99
DOC Add array_api_compat requirement in user guide
thomasjpfan 5f6ad0e
CLN Refactor version check
thomasjpfan 39d4589
CLN Reduce complexity by removing private helper
thomasjpfan d15ef65
TST Skip test if array_api_compat is not installed
thomasjpfan 0e0f459
DOC Adds docstring about global config
thomasjpfan deb22e8
TST Add skip for compat
thomasjpfan 4d1ef4b
CLN Be less recursive
thomasjpfan 5229052
ENH Fixes isdtype implementation
thomasjpfan 2bf8845
DOC Fixes docstring
thomasjpfan 0f691a6
CLN Remove unneeded name
thomasjpfan d51f974
TST Adds skip test
thomasjpfan d2d6e9c
ENH Allows xp to be passed into _convert_to_numpy
thomasjpfan de5633e
CLN Remove None in x.shape
thomasjpfan 3d25534
Apply suggestions from code review
thomasjpfan bd90dc3
CLN Simplify get_namespace logic
thomasjpfan 32f1104
TST Improve coverage
thomasjpfan c54a072
CI Adds pytorch to CI
thomasjpfan 75ca390
FIX Fixes test
thomasjpfan 235fc2e
Merge remote-tracking branch 'upstream/main' into array_api_compat_ld…
thomasjpfan 7b4e6c6
FIX Fix merge
thomasjpfan cc69829
CLN Minimize diff
thomasjpfan a2f9168
Merge remote-tracking branch 'upstream/main' into array_api_compat_ld…
thomasjpfan 5e737e4
STY Fix linting
thomasjpfan 3682bee
CI Fix array api installation
thomasjpfan d88c38c
Use array-api-compat from conda-forge
thomasjpfan 14400ab
TST Ignore coverage for GPU
thomasjpfan 1ee18bf
TST Add no cover for cupy branch
thomasjpfan 3c60811
Merge remote-tracking branch 'upstream/main' into array_api_compat_ld…
thomasjpfan e320a32
STY Update black version
thomasjpfan ce1191a
ENH Use DLPack instead
thomasjpfan 128411b
STY Remove unneeded import
thomasjpfan cb24ffd
Apply suggestions from code review
thomasjpfan 878da33
DOC Comment about xp.asarray
thomasjpfan 16bc7a8
Merge remote-tracking branch 'upstream/main' into array_api_compat_ld…
thomasjpfan 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
75 changes: 35 additions & 40 deletions
75
build_tools/azure/pylatest_conda_forge_mkl_linux-64_conda.lock
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,3 +20,6 @@ dependencies: | |
| - pytest-cov | ||
| - coverage | ||
| - ccache | ||
| - pytorch=1.13 | ||
| - pytorch-cpu | ||
| - array-api-compat | ||
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 int
77EC
erpreted 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.
Uh oh!
There was an error while loading. Please reload this page.