-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG+2] Limiting n_components by both n_features and n_samples instead of just n_features (Recreated PR) #8742
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
26 commits
Select commit
Hold shift + click to select a range
967d792
fixed issue 8484
8ffff6f
dealt with indentation issues flagged by flake8
cbdffc4
code to handle n_components==None with arpack was missing
279184c
added non-regression tests for my previous changes in pca
4d093ab
minor change: reverted iterator name in test_pca
0f38101
changed AssertRaises to regex variant in test, and minor writing chan…
4ee548c
corrected pca.py fix
b72ffe4
improved test_pca_validation()'s scope
fcc0139
Merge branch 'master' into pca_8484_2
wallygauze 110cd18
added an entry to whats_new.rst
c9049f9
add requested code for axis-invariance check
wallygauze c89ef02
Clarified doc change
wallygauze b91fa3b
rephrased whats_new entry
d449868
fixed flake8
07c1e1d
refactored test code
724e612
corrected whats_new entry typo
2251ae5
arpack case was missing from test; improved overall test
f9af4d6
flake8 corrections
fe7047f
arpack case was still missing + fixed my test bug + more refactoring
1e7cd10
corrected typo
a528512
allow type long?
f25bd9c
accidentally left useless piece of code
9408366
Merge branch 'master' into pca_8484_2
wallygauze bd1f151
reverted changes in doc/whats_new.rst
e3ecd12
added entry in whats_new/v0.20.rst
a7f3020
Merge branch 'master' into pca_8484_2
wallygauze 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
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.
What are the exact conditions on the arpack solver?
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.
the solver uses scipy.sparse.linalg.svds, and according to the docs
the k parameter (n_components) must be such that 1 <= k < min(A.shape).
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.
hm then this seems fine. alright.