We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
csr_vcorrcoef
In csr_vcorrcoef, the radicals in the denominator of the Pearson's correlation are calculated incorrectly. For 1d arrays X, the radical should be
X
np.sum((X - X.mean()) ** 2)
or equivalently
np.sum(X ** 2) - 2 * np.sum(X) * X.mean() + len(X) * X.mean() ** 2
The actual implementation is missing the factor 2 as well as len(X).
2
len(X)
scvelo==0.2.4.dev48+gba75c4a.d20210719 scanpy==1.7.2 anndata==0.7.6 loompy==3.0.6 numpy==1.20.3 scipy==1.6.3 matplotlib==3.4.2 sklearn==0.24.2 pandas==1.2.4
The text was updated successfully, but these errors were encountered:
Closed via #679.
Sorry, something went wrong.
WeilerP
Successfully merging a pull request may close this issue.
Description
In
csr_vcorrcoef
, the radicals in the denominator of the Pearson's correlation are calculated incorrectly. For 1d arraysX
, the radical should beor equivalently
The actual implementation is missing the factor
2
as well aslen(X)
.Versions
The text was updated successfully, but these errors were encountered: