Skip to content
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

ENH: Fix lowess extrapolation #9221

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jseabold
Copy link
Member

Really, #7337 didn't have anything to do with extrapolation per se. In most of the examples, you just get to a perfect fit and we weren't stopping so it goes off the rails. See #9220.

In the last case, where frac=.3. Since that results in 3 data points in the neighborhood, and with a radius of 2 and them being spaced like 1, 2, 3, you're only ever going to get 2 non-zero weights. Really, you only need your weights to sum to something greater than zero to do the WLS step (for better or worse), so I made that change. That revealed the test case where we have so many ties. Instead of handling this through weights counting, I added a guard for radius of zero.

Draft because this also includes #9220 until/if merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Lowess extrapolation missing output values.
1 participant