Replies: 1 comment 6 replies
-
Hm, not with You might be able to build what you want, though, by using:
I would be curious to hear whether that approach works - if yes code would be appreciated, so we can add this as an integration test case. If not, code would be appreciated in a bug report... |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
sktime
Community!I'm exploring the
make_reduction
functionality and have a question regarding its application with an expanding window approach, as opposed to a sliding window.Suppose I have a univariate time series, [1, 2, 3, 4, 5, 6], and I aim to create a forecaster that employs expanding windows to predict the subsequent value. The sequence of expanding windows and predictions would be:
[1]
to forecast2
.[1, 2]
to forecast3
.[1, 2, 3]
to forecast4
.[1, 2, 3, 4]
to forecast5
.[1, 2, 3, 4, 5]
to forecast6
.However, this format is not directly compatible with a scikit-learn regressor, as the input dimensions vary and cannot be represented as a standard square matrix. I would like to apply a transformer that can convert this series into a suitable tabular format. For instance, a simple transformer might compute the average of each expanding window, which would then serve as the input for the sklearn model to make predictions. To illustrate:
[1]
is1
, which would be used to predict2
.[1, 2]
is1.5
, which would be used to predict3
.[1, 2, 3]
is2
, which would be used to predict4
, and so on.(Of course, the idea is to use more complex transformers.)
My Question:
Is the expanding window approach currently feasible with
make_reduction
? I appreciate any suggestions or pointers you may provide!Beta Was this translation helpful? Give feedback.
All reactions