-
Notifications
You must be signed in to change notification settings - Fork 28
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
Missing values support #30
Comments
I encountered a similar issue when using this package with missing values in 0.6.4:
Would it make sense to define functions in this packages to return
|
I see how this is useful, but handling |
Fair enough! |
But - given that |
This comment is a bit hyperbolic. The package is already being used by upstream AD packages like ForwardDiff and JuMP (https://github.com/JuliaOpt/JuMP.jl/blob/82e998f72e849f7a5f8c264accb41d9eafbcc845/src/Derivatives/Derivatives.jl#L15) for well-defined purposes that currently don't require any support for |
I see you're right this package is still equally useful in that context. I guess I'm just disappointed as I thought this could be a more broadly useful package, and most packages that would depend on this will need to be able to support all the numerical functionality defined in Base for these functions. My suggestion that it might be "dangerous" came from the notion that users would expect Base.mean and NaNMath.mean to behave similarly except in their treatment of NaN. |
One solution that is |
I view a Anyway I'm willing to share maintainership if there's interest in making the package more useful for additional applications. |
You're right. After looking into it I'm also less certain that the right approach is to change this to treat |
It would make sense to accept |
I tested out this package on 0.7 with
missings
and got the following error:I think this is because
Statistics
is not imported byNaNMath
, so the function calls toNaNMath.mean
can't fall base onStatistics.mean
.I think the solution here is to add
import Statistics
and add fall backs for operations of typeAny
so those are called when there are missing values. Does that seem feasible?The text was updated successfully, but these errors were encountered: