'TensorFlow time series input/output question

Help, please!

I have a TensorFlow time series problem with the constraint that the model's input layer should be shape of (batch, before = 5, features = 1) and the model's output shape should be (batch, after = 5, features = 1). As well as (features = 1) neurons in the final dense layer since model predicts only 1 feature.

How do I go about shaping the input/output layers in the RNN model?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source