Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement forecast decomposition for SMA-based models #1180
Implement forecast decomposition for SMA-based models #1180
Changes from 8 commits
088e8bc
fa82895
4e89b3e
e0d4914
eb34b38
da2a2d5
15e1959
c6d84dc
ce8fbcf
ff592f8
36389f0
7bb3c17
1f82430
1402b65
f77879d
f233641
97a0b74
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
We still use
df.loc[-prediction_size:, pd.IndexSlice[:, "target"]]
, this probably won't work on all pandas versions (we have error in testing under different pandas versions).The
:prediction_size
implies that first index is integer, but it isn't.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.
Sorry, missed this place, you are right. Fixed it
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 be we should make it more clear why in
forecast
we addy_pred
intodf
. Because autoregression logic lies withindef _forecast
and isn't present on level ofdef forecast
.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.
Or we should make it more clear what kind of
df
we are going to use inside_predict_components
. We require that it contains lags that was used to make a prediction (taking into account auto-regression), it isn't clear.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 docstring to
_predict_components
with description ofdf