I have done modelling for Univariate
timeseries but while using multivariate
time series ( independent features) not able to achieve result. please let me know if anybody have used .
please find reference link
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.
Sign up to join this communityI have done modelling for Univariate
timeseries but while using multivariate
time series ( independent features) not able to achieve result. please let me know if anybody have used .
please find reference link
You just need to ensure that the model you forecast with has a design matrix covering both the observed and forecasted timesteps. That is, you'd build a model including a component along the lines of
sts.LinearRegression(
design_matrix=tf.concat([temperature_for_observed_timesteps,
temperature_for_forecast_timesteps], axis=-2),
name='temperature_effect')
(ignoring any centering and reshaping logic) and then pass that model to the forecast method.
If you don't have access to future values of the external regressor when you first build the model, a useful pattern is to encapsulate model building in a method def build_model(observed_time_series, design_matrix) that returns a StructuralTimeSeries model object. Then you can build an initial model with just the observed time steps in order to fit parameters, and then remake the model later once you have the regressors for the forecast steps on hand.