-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
follow upstream scipy interpolation improvements #7704
Comments
I would like to work on this. For clarity, the goal is to support tensor product interpolation wherever scipy |
Nice!
Yes, I believe so. |
We may also want to replace |
The 1d interpolation situation seems to have a few additional inconsistencies, maybe due to updates to the scipy interface.
I think that these point (maybe except 4) will be resolved in the course of solving the original issue, just wanted to make sure I'm on the right wavelength. |
This seems right. I recommend opening as small a PR as possible for easy review rather than a large one that solves many issues. Let us know if you need help. Does (1) seems like an easier place to start? |
I am having a hard time tracing the impact of the vectorizeability of The Thanks for any insight. |
What happens if you set |
It fails |
Sorry that is a bit gnarly, this module hasn't been touched in a while, so we lack some context. Do (2) or (3) in your list above feel more approachable? |
I have been unable to reproduce the strange behavior described in my previous comment so I think it's actually behaving reasonably. Thanks for the response. I have submitted a PR related to #9049 and will continue working on this. |
I've moved on to the implementation of tensor product interpolators via To my understanding, a few of the new interpolators (cubic and quintic tensor product splines) are "genuinely multidimensional", so an equivalent result would not be produced by applying a lower-dimensional analogue along dimensions sequentially. However One solution would be to disable this optimization when a "genuinely multidimensional" interpolator is encountered. This would solve the issue and be backwargs-compatible. The only issue is that it would require me to figure out which interpolators are genuinely multidimensional! But the worst case scenario here is just a missed optimization and perhaps some embarrassment. My real dream would be to "pass the buck to scipy"--write things in a way that does not require any understanding of the scipy interpolators. |
This should only be true for "linear" and "nearest". A test that compares our output to scipy's output should confirm this (and would be a good test to have!) |
Is your feature request related to a problem?
Scipy 1.10.0 has some great improvements to interpolation (release notes) particularly around the fancier methods like
pchip
.It'd be good to see if we can simplify some of our code (or even enable using these options).
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: