TensorFlow-Examples icon indicating copy to clipboard operation
TensorFlow-Examples copied to clipboard

Dynamic RNN for time series prediction issue

Open lucasjinreal opened this issue 7 years ago • 1 comments

In tutorial about rnn, using toy data implements classify 2 classes dummy series, what if we predict on time series data with only one series? Say:

[1.2, 1.1, 1.1, 1.3, 1.4, 1.5, 1.3..]

I run the code but simple got confused by the error. the input shape of dynamic rnn should be 3 dimension, however with only one series, I can only get like this:

[[1.2, 1.1, 1.1],
[1.1, 1.1, 1.3],
...
]

which is 2 dimension, how to feed such data into dynamic rnn?

lucasjinreal avatar Mar 28 '17 13:03 lucasjinreal

3 dimensions being, [batch_size, time_steps, input_features] in your case : , input_features = 1, just expand the last dimension

deepakmeena635 avatar Mar 06 '19 09:03 deepakmeena635