Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
scale function(_get_mean_var) updated for dense array, speedup upto ~4.65x #3099
scale function(_get_mean_var) updated for dense array, speedup upto ~4.65x #3099
Changes from 6 commits
65e7951
6d1f278
37ef6ac
34da6fb
f080c7f
e7a4662
b6b6139
06c0968
d244924
53d40dd
63404f2
9254a97
357bfbc
7a1a62e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 44 in src/scanpy/preprocessing/_utils.py
Codecov / codecov/patch
src/scanpy/preprocessing/_utils.py#L42-L44
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.
Before your change, this line ran unconditionally, now it only runs for the
not isinstance(X, np.ndarray)
case. Is that intentional? Then you should mention that in_compute_mean_var
’s docstring.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.
We already have
_get_mean_var
. Maybe rename this to_get_mean_var_ndarray
or_get_mean_var_dense
?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.
I think we can rename the kernel