-
Notifications
You must be signed in to change notification settings - Fork 16
Fix smoother imputing polynomial order #490
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
Conversation
) | ||
# Otherwise, use savgol fitting on the largest window prior | ||
# Otherwise, use savgol fitting on the largest window prior, | ||
# reduce the polynomial degree if needed |
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.
add a note why the reduction of the polynomial degree is needed.
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.
Done
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.
just one comment otherwise lgtm
* entire array of nans is handled * left-padded nans are now ignored * a few other edge cases * add tests to match
* restore the index after smoothing * test to match
a5c18a1
to
45ab905
Compare
* separate out the smoother's polynomial fit degree from the imputer's * default the imputer's fit degree to 2 * add tests
45ab905
to
fa0b6e2
Compare
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.
This depends on #476 -8 right? maybe should add a section for that on the pr template.... |
Oops, meant to do that |
Description
Update the smoother's imputation function to perform better. Depends on #478 .
Changelog
Fixes
Without this change, using
poly_fit_degree=0
would use this setting in the imputer and introduce the poor performance above.