-
Notifications
You must be signed in to change notification settings - Fork 80
Fix behavior of SARIMAXModel
if simple_differencing=True is set
#837
Conversation
🚀 Deployed on https://deploy-preview-837--etna-docs.netlify.app |
Codecov Report
@@ Coverage Diff @@
## master #837 +/- ##
==========================================
+ Coverage 84.53% 84.64% +0.11%
==========================================
Files 128 130 +2
Lines 7390 7450 +60
==========================================
+ Hits 6247 6306 +59
- Misses 1143 1144 +1
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
This reverts commit 7c6cb6b.
) | ||
end_idx = determine_num_steps( | ||
start_timestamp=self._first_train_timestamp, end_timestamp=end_timestamp, freq=self._freq # type: ignore | ||
) |
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.
May we should add assert there, something like
end_idx-start_idx == len(df), "Check that total number of steps to forecast is equal to total ts lenght
and so so on
It's not obvious how number of steps has become index
def test_prediction_simple_differencing(): | ||
"""Check that SARIMAX gives similar results with different values of ``simple_differencing``. | ||
|
||
We generate dataset from ``generate_ar_df`` with ``ar_coef=[1]`` and it gives us (0, 1, 1) process. |
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.
(1,0,1), no?
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.
👍
Before submitting (must do checklist)
Proposed Changes
Look #836.
Closing issues
Closes #836.