-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH Add inverse_transform to random projection transformers #21701
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
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
1c87aff
Add inverse_transform to random projection transformers
ageron da07374
Add PR number. This PR fixes #21687
ageron f41f062
Test the inverse transform's output shape
ageron b107078
Add missing newline in test
ageron 33f141d
Add doc on inverse transform in user guide, rename components_pinv_ t…
ageron 91eff82
Use scipy's svds to compute pinv when components_ is sparse
ageron a3584f1
Remove warning about components converted to dense array
ageron baa5b4f
Add docstrings for the new sparse svd and pinv functions
ageron f1ee941
Clarify docstrings as suggested by @ogrisel
ageron d4d0319
Merge branch 'main' into rnd_proj_inverse
ageron dc343e8
Add missing newline in whats_new/v1.1.rst
ageron d5ea32c
Add axis=0 to np.flip()
ageron 675b330
Fix _svd_for_sparse_matrix and remove comp @ pinv(comp) = eye test
ageron f540118
Add test that inverse_components_ is equal to pinv(inverse_components_)
ageron af3be3c
Apply black formatting
ageron 47a2efe
Use scipy.linalg.pinv rather than np.linalg.pinv
ageron 47b760d
Make sparse svd support all cases where n_rows < n_cols, or n_cols < …
ageron 8d3381b
Merge branch 'main' into rnd_proj_inverse
ageron a4ad5c1
Black format
ageron 4d0c203
Update v1.1.rst
jeremiedbb ca166fa
Merge branch 'main' into rnd_proj_inverse
jeremiedbb ae43d9e
Update doc/modules/random_projection.rst
ageron 8371738
Replace "Transformed data" with "Reconstructed data"
ageron b2324a8
Merge branch 'main' into rnd_proj_inverse
ageron 57cfa01
Remove technical detail about how the pseudo-inverse is computed
ageron 54ae7a9
Unrelated but flake8 was complaining that a double empty line was mis…
ageron 3571265
Do not parametrize test for random_state, rename n_cols and n_rows to…
ageron 90bff52
take true zeros into account for assert_allclose
jeremiedbb f4d02b6
black
jeremiedbb 0849cf7
always expose inverse_transform + densify instead of sparse pinv
jeremiedbb 3b212a0
black
jeremiedbb daf1fd4
lint
jeremiedbb 0bf501c
update doc
jeremiedbb a1fdf38
cln
jeremiedbb 9403a62
updatewhat's new
jeremiedbb 243d360
cln
jeremiedbb c7ba371
increase coverage
jeremiedbb 4179072
Merge branch 'main' into rnd_proj_inverse
ogrisel ff1b1da
Use the global_random_seed fixture in the new test
ogrisel 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
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.