-
Notifications
You must be signed in to change notification settings - Fork 21
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
Inconsistent z-score calculation for CSC and CSR sparse matrices #288
Comments
I believe this effects most of your other functions like |
Yes, I also see that. I may add this guard to them as well. Specifically for your case, please let me know if the issue still persists. |
The fix for this issue is released in version 1.9.1 (https://pegasus.readthedocs.io/en/stable/#march-16-2024). I'll close this issue, but feel free to reopen it if it persists. |
The z-score calculation in Pegasus produces inconsistent results based on the type of input matrix (CSC or CSR). The following code snippet demonstrates the issue:
Upon investigation, the root cause seems to be in this line. The code should check the orientation of the sparse matrix before computing mean and standard deviation. Coercing the matrix to CSR format might be necessary, If I understand the sparse functions here correctly.
Environment:
The text was updated successfully, but these errors were encountered: