LSTM model with exogenous factors
I have the following 3 columns in my dataset: 1.month, 2.day_of_week, 3.quantity.
I would like to predict the future values of quantity, having following variables as explanatory:
- One-hot encoding of month (12 variables).
- One-hot encoding of day_of_week (7 variables).
- The last 2 lags of quantity (2 variables).
Could such an analysis be supported by an LSTM model? I believe I have managed to create an LSTM model which takes the 2 lags as explanatory, but I have no idea how to add the 19 exogenous factors (from the 2 one-hot encodings) as explanatory variables to the model.
Note: I am using the Keras python library for my implementation.
Topic lstm keras tensorflow rnn python
Category Data Science