2
$\begingroup$

I came across this excellent question and answer by Adam Sypniewski. Here method of using RNNs (e.g. LSTMs and GRUs) for predicting time series where the dependent variable depends on several independent variables. Just wondering, is anyone aware of some Keras code for this?

$\endgroup$
2
$\begingroup$

Please go through this tutorial:

https://machinelearningmastery.com/multivariate-time-series-forecasting-lstms-keras/

The author focuses on LSTM-RNNs with explicit instructions on how to re-shape your dataset into the format that Keras requires, which can be VERY tricky if not properly understood.

$\endgroup$
0
$\begingroup$

From the same question you mentioned, you will find an interesting link to Keras documentation. If you navigate to Multi-input and multi-output models you'll find an example code that does exactly this.

enter image description here

$\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.