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
How to ignore 𝙽𝚊𝙽 in reduce? #166
Labels
question
Further information is requested
Comments
It is currently supported by providing callables for reductions in einops.reduce(array, 'i j k -> (i j)', np.nanmean) |
arogozhnikov
added
question
Further information is requested
and removed
feature suggestion
labels
Sep 27, 2022
arogozhnikov
changed the title
[Feature suggestion] ignore 𝙽𝚊𝙽 flag for reduce
How to ignore 𝙽𝚊𝙽 in reduce?
May 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Numpy and many other libraries have introduced additional aggregation functions that ignore 𝙽𝚊𝙽-values, for instance:
numpy.nan[sum, mean, min, max, argmin, argmax, median, std, var, prod, quantile, percentile]
torch.nan[sum, mean, median, quantile]
tensorflow.experimental.numpy
jax.numpy
ignore_nan
forreduce
nanreduce
that does the same thing but is visually more striking.Similarly, one could consider an additional
ignore_infinite
-flag.The text was updated successfully, but these errors were encountered: