-
Notifications
You must be signed in to change notification settings - Fork 532
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
[REVIEW] Fix Attribute error on IPCA #3183 and PCA input type #3190
Conversation
Please update the changelog in order to start CI tests. View the gpuCI docs here. |
Codecov Report
@@ Coverage Diff @@
## branch-0.17 #3190 +/- ##
===============================================
+ Coverage 70.99% 71.02% +0.02%
===============================================
Files 198 198
Lines 15729 15731 +2
===============================================
+ Hits 11167 11173 +6
+ Misses 4562 4558 -4
Continue to review full report at Codecov.
|
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.
LGTM, thanks Mickael, and congratulations on your first PR! I distinctly remember there being tests for whiten
path when I wrote them. I think recent CumlArray changes and internal effort to speed up tests changed both these things at the same time.
|
||
if return_sparse: | ||
pytest.skip("Loss of information in converting to cupy sparse csr") | ||
|
||
X = cupyx.scipy.sparse.random(nrows, ncols, density=0.07, dtype=cp.float32, | ||
random_state=10) | ||
if not(cupy_input): |
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.
for future reference - you don't need these parentheses
This PR is fixing the attribute error of #3183, and additional bugs on the input type of PCA (
sparse_scipy_to_cp()
function call missed an argument) and on the shape ofself.singular_values_
.I am also adding additional tests on the bug fixed here.