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$

3 Answers 3

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$
1
$\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$
0
$\begingroup$

See . Multiple Input and Output Models

https://machinelearningmastery.com/keras-functional-api-deep-learning/

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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