cuml icon indicating copy to clipboard operation
cuml copied to clipboard

[BUG] PCA / TSVD sign flipping is unused and not correct

Open cjnolet opened this issue 3 years ago • 4 comments

The sign flipping just makes sure all the corresponding components in U and V^T are on the same side of the axes and doesn't affect the correctness of the results. Currently we are not using it, the transformed data was required which shouldn't be necessary. Currently, our pytests are comparing against scikit-learn without respect to the sign, which is still valid, however we should correct the sign flipping and add it back in at some point just so that we can guarantee exact match w/ sklearn. The benefit here is to prevent confusion from users when they compare the results side-by-side.

cjnolet avatar Feb 07 '22 15:02 cjnolet

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

github-actions[bot] avatar Mar 09 '22 16:03 github-actions[bot]

This issue has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.

github-actions[bot] avatar Jun 07 '22 17:06 github-actions[bot]

Perhaps this would be a good first issue for a new contributor?

beckernick avatar Jun 21 '23 13:06 beckernick

Possibly related to https://github.com/rapidsai/cuml/issues/2368 .

csadorf avatar May 15 '25 18:05 csadorf

Perhaps this would be a good first issue for a new contributor?

Thanks, working on it now. Pull request in preparation.

zhuxr11 avatar Oct 11 '25 13:10 zhuxr11