0
$\begingroup$

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

$\endgroup$
0
$\begingroup$

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.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.