title: How to get forecast results on training data?
body: <p>I have a Long Short-Term Memory (LSTM) deep neural network code that makes multivariate forecasts of a variable, The database is split into a training and test set:</p>
  <pre><code>from keras.layers import Dense, LSTM, Dropout
  
  model=Sequential()
  model.add(LSTM(units=50,return_sequences=True, input_shape=(1,5)))
  model.add(Dropout(0.2))
  model.add(LSTM(units=50))
  model.add(Dropout(0.2))
  model.add(Dense(1))
  model.compile(optimizer='adam', loss='mean_squared_error')
  
  model.fit(X_train_shape,y_train, epochs=100, batch_size=48)
  </code></pre>
  <p>The database is split into a training and test set.</p>
  <p>As final results the model gives me the forecast results on the test data set.
  How can I get the prediction results of the training data as well?</p>