October 2018
Intermediate to advanced
252 pages
6h 49m
English
Here we instantiate a sequential model and add the following layers:
The following steps describe the preceding points in detail:
model = Sequential() model.add(LSTM(n_neurons, batch_input_shape=(n_batch, X.shape[1], X.shape[2]), stateful=True)) model.add(Dense(1))
model.compile(loss='mean_squared_error', optimizer='adam')