Reshaping data for regression #2811
-
Hi, How would you go about reshaping data for a regression task? I am a bit confused about how I go from a 2d format, for example 1000 data points long with 2 channels to the 3d format. Would the end result be (1000, 2, 10) assuming I want 10 lags 'look back'? Are there any utility functions to help or any good examples? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @adampointer, could you please specify the following so we can better answer your question :
Thanks ! |
Beta Was this translation helpful? Give feedback.
-
To clear out some confusion about the task type :
You can use exogenous features in forecasting with the So If I understand correctly, you have one time series That part got me confused :
What do you mean by a collection here ? |
Beta Was this translation helpful? Give feedback.
hi, we do not have a tools to automatically format multivariate forecasting yet, forecasting module is very much in development, but its possible to rephrase it as regression and use a standard regressor. This formulation is different to ETS/ARMA style and it is a cause of confusion :) We will be doing a lot more with forecasting over the Summer.
Suppose your series to forecast is (1000,) and you want to use two exogenous variables stored in array of shape (2,1000). You want to use a window length 100. So if you have a horizon of 1, to forecast point 101, you use points 1 to 100 of the original series, and (2,100) of exogenous.
This makes a single case of shape (3,100) to predict one valu…