December 2018
Beginner to intermediate
684 pages
21h 9m
English
Having created input/output pairs from our stock index time series and split the pairs into training/testing sets, we can now begin setting up our RNN. Keras makes it very straightforward to build a two-hidden-layer RNN of the following specifications:
This can be constructed using just a few lines, as follows:
rnn = Sequential([ LSTM(units=20, input_shape=(window_size, n_features), name='LSTM'), Dense(1, name='Output')])
The summary shows that the ...