-
Notifications
You must be signed in to change notification settings - Fork 8
Djm/remove fabletools #315
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
As I worked on this, is there a reason for the Various other warnings unrelated to my changes in local checks. |
The |
I've made the fixes based on our Slack discussion. Passes local checks, though there are some warnings due to functions I haven't touched. I moved |
ff8c7ae
to
8a34ee8
Compare
Rebased to address merge conflicts, apply styling, and squash some commits [& force-pushed this + rebase+force-pushed again to correct some metadata]. Tested that detect_outlr example still gives effectively the same results (A simple [I forgot one part of the logical merge conflict resolution: moving from Abort to cli_abort. Also I still need to look over the changes.] |
0ef7304
to
af890e2
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.
I think I've finished addressing merge conflicts now via rebasing. I've left a few notes here to end the day. Most are minor things that I can probably quickly clean up. But I was sidetracked by a larger surprise, which is that our method of non-seasonal fitting is sensitive to the fake seasonal settings. I can continue looking into whether there's a way to get a "cleaner" non-seasonal fit a bit, but would be glad if you have ideas/plans here. I'm quite unfamiliar with STL&LOESS.
af890e2
to
ff8e98c
Compare
I've once again rebased to
I've also pushed changes to address my feedback [+ some other things I realized but didn't note above]. I gave up on trying to actually remove the seasonal component and instead just tried to make the function slightly more flexible and make the documentation not lie. |
9f6402b
to
b9df504
Compare
Hi @nmdefries, could you please take a quick sanity check pass over this? I've done some git surgery on it + tried to fix a few things and it'd be helpful to have an independent pass. [Context: this was a very old refactor. Git surgery was due to the "very old" part. Non-refactor stuff was because "refactor" actually changed behavior of some (logic) branches and our documentation wasn't accurate about what was happening (neither before or after refactor); plus a little more arg validation.] |
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.
Looks reasonable enough, but it would be nice to have some tests to verify behavior. I assume existing tests would break with these changes.
e5d58d5
to
bbe3feb
Compare
Thanks for the pass. Thinking about testing:
|
IIRC, @dshemetov did some work on comparing vignettes before/after a change. I wonder if he turned up anything there that we can run automatically. |
Here's what I ended up doing. I didn't keep it in, because I was concerned committing vignette outputs would balloon the repo size. |
Thanks, I forgot that you already implemented something for this. Agree that if we want it in CI, it'd be better to find some way to keep the vignette outputs out of the repo (e.g., using GitHub artifacts). I ended up just visually comparing the vignettes and they look similar enough. Again, I'm going to forget about adding other tests for now and go ahead and merge. |
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.
Approving in an [unsuccessful] attempt to wake up or regenerate CI. [Using workflow dispatch instead.]
--- In `detect_outlr_stl()`: --- It appears there's simple way to turn off the seasonal component of STL; simply considering the seasonal component as part of the residual will do different things based on frequency/seasonal/low-pass args to `stats::stl()`. So, instead of `seasonal_period = NULL` doing the seasonal + residual thing for some fixed magic values of the other args, instead split it into `seasonal_period` and `seasonal_as_residual` to allow the user more control. Update docs and vignettes accordingly. (Plus remove reference to no-longer-used `feasts`.) More validation: - More validation on `seasonal_*` args. - Try to detect gaps in `x` values and complain (we can't simply fix with `complete()`; NAs aren't allowed). - Order `x` and `y` according to `x`.
Co-authored-by: nmdefries <[email protected]>
2472031
to
b0e207c
Compare
The workflow dispatch R CMD check run run didn't attach to this PR. It has some unrelated failures that will be skipped by #480. Force-push above is to rebase on top of dev to get these test skips. |
Removes some package Imports used only in
detect_outlr_stl()
.