-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for multi GPU PCA compute failing bug after transform and added e…
…rror handling when n_components is not passed (#3912) This PR fixes #3913 where Multi GPU PCA is failing on calling compute() after transform. This fix is similar to what has been done in a previous PR #3320 . The current PR : 1. Fixes the problem of `AttributeError` when calling `compute()` after `transform()` while using `cuml.dask.decomposition.PCA` 2. Added setting of `n_components=1` when n_components is not set in the multi GPU case. (The tests were failing if I don't set n_components, however, I did not find a place where n_component is set to 1. I may be wrong. PR #3320 seems to fix `n_component=min(n_cols, n_rows` as of 0.16 for single GPU. Not entirely sure if that should also be the case for MG as well. ) 3. Added test cases for the above two changes. Authors: - Anirban Das (https://github.com/akaanirban) Approvers: - Micka (https://github.com/lowener) - Dante Gama Dessavre (https://github.com/dantegd) URL: #3912
- Loading branch information
1 parent
1be5e3a
commit 87f8e90
Showing
3 changed files
with
39 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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 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 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