-
-
Notifications
You must be signed in to change notification settings - Fork 26k
FIX Better support large or read-only datasets in decomposition.DictionaryLearning
#25172
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
lesteve
merged 16 commits into
scikit-learn:main
from
jjerphan:fix/make-cd_fast-use-nd_array-for-read-only-support
Jan 19, 2023
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
96c6870
FIX Make `cd_fast` use cnp.ndarray to support readonly buffers
jjerphan 73fa243
MAINT Remove ReadonlyArrayWrapper
jjerphan 8d1ce0e
TST Add non-regression test for #25165
jjerphan c223481
DEBUG Use ReadonlyArrayWrapper to support const qualification
jjerphan c1a4d96
MAINT Simplify and make copy of chunks of w
jjerphan ad6058d
TST Make test_cd_work_on_joblib_memmapped_data faster to run
jjerphan 160d6d5
fixup! MAINT Simplify and make copy of chunks of w
jjerphan 1200183
[scipy-dev] Trigger CI
jjerphan 5ad7565
[scipy-dev] TST cnp.ndarray all the way!
jjerphan eee8314
Merge branch 'main' into fix/make-cd_fast-use-nd_array-for-read-only-…
jjerphan bb4246f
CI Trigger CI
jjerphan d77042d
Merge branch 'main' into fix/make-cd_fast-use-nd_array-for-read-only-…
jjerphan 7687a18
Merge remote-tracking branch 'upstream/main' into fix/make-cd_fast-us…
jjerphan 4697e74
DOC Document workaround
jjerphan 5595f7f
DOC Add a whats_new entry for 1.2.1
jjerphan 120a489
Merge branch 'main' into fix/make-cd_fast-use-nd_array-for-read-only-…
jjerphan 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
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.
Does this TODO take effect now since const fused typed memoryviews are available?
Uh oh!
There was an error while loading. Please reload this page.
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.
Not yet, but once #25342 is merged.
Uh oh!
There was an error while loading. Please reload this page.
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.
#25342 is now merged. Shall we try that now or is it safer not to experiment with const typed memory views in a bugfix (1.2.1) and instead do that only in
main
(for 1.3.0)?Uh oh!
There was an error while loading. Please reload this page.
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.
Provided that Cython has good coverage and test cases for
const
-qualified memoryviews, I think it is safe and the best to use them to resolve such issues (as it is conceptually the best solution). Yet it do not think we need to use them for this fix with respect to the next bug fix release (I do not want to postpone this release).Note that using such construct might not be sufficient to fix the problem tackled by this PR as cython implementations need writable buffers.
I will start investigating
const
-qualified fused typed memoryviews tomorrow for this fix and for other long standing issues.