-
Notifications
You must be signed in to change notification settings - Fork 908
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
Improve description for ARIMA parameters (p, q, seasonal_orders and trend) #2142
Conversation
Hi @MarcBresson, simply run black like below (we don't use line length 120)
|
@MarcBresson , now isort is complaining. I suggest installing the pre-commit hook for automatic lint/reformatting as described here |
I'm sorry for all the troubles. I had issues with flake on the pre-commit hook, so I took the liberty to update it to the last version. I forced push to clean the commit history and regroup all the isort and black reformatting under the same commit |
All the tests passed, I rebased the branch so its ready to be merged |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2142 +/- ##
==========================================
- Coverage 93.88% 93.87% -0.02%
==========================================
Files 135 135
Lines 13429 13420 -9
==========================================
- Hits 12608 12598 -10
- Misses 821 822 +1 ☔ View full report in Codecov by Sentry. |
Should I update the test with def test_historical_forecasts_transferrable_future_cov_local_models(self):
model = ARIMA(p=np.array([1, 2, 3, 4, 6]), q=(2, 3))
... ? |
Instead of modifying the current test, I would rather add new one so that the difference between the two set of parameters can be highlighted/verified. |
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.
Thanks a lot for this nice contribution @MarcBresson, I didn't even know that you could use a sequence of lags for more fine grained control over the parameters. That's great!
I added some suggestions that are just trying to rephrase some bits here and there to follow more our style from other models.
After that it's ready to be merged 🚀
.pre-commit-config.yaml
Outdated
@@ -6,7 +6,7 @@ repos: | |||
language_version: python3 | |||
|
|||
- repo: https://github.com/PyCQA/flake8 | |||
rev: 4.0.1 | |||
rev: 7.0.0 |
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.
let's add this to the CHANGELOG.md under
UNRELEASED -> For developers of the library
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.
Should I update other pre-commit hooks ? That way we are up to date and developers will not have to pre-commit install
anytime soon.
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 updated all pre-commit hooks and change the argument for pyupgrade. See changelog (or commit description) for more info
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.
Hi @MarcBresson, thanks for the changes. Everything loks fine now.
As a last point, could you move the changes to the pre commit hooks to a separate PR? Like that we keep it clearly separated.
After that we can merge :) 🚀
Co-authored-by: Dennis Bader <[email protected]>
TypeAlias in typing is not available before python3.10. It must be imported from typing_extensions when using python3.9
Co-authored-by: Dennis Bader <[email protected]>
Co-authored-by: Dennis Bader <[email protected]>
…nt out the condition on the trend lowest order. it cannot be a sequence for some reason. An issue has been opened on statsmodels repo statsmodels/statsmodels#9145
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.
Thanks a lot @MarcBresson for this contribution, now everything looks perfect :) 🚀
Sorry if the journey was a bit long for this. I'll merge now.
Summary
It provides more context to some features that are available in statsmodels but were not mentionned in Darts documentation.
Other Information
See statsmodels/statsmodels#9065 that