Data Science, Machine Learning, Time Series Forecasting, Lstm, Deep Learning.
lstm_predictions.reshape(lstm_predictions.shape[1]) lstm_fitted = model.predict(X_train) fits = [np.diag(np.fliplr(lstm_fitted), i).mean() for i in range(lstm_fitted.shape[1]+n_steps_in - 1, -lstm_fitted.shape[0], -1)] # Metrics mape = mean_absolute_percentage_error(y_test, predictions) r2 =