Data Science, Machine Learning, Time Series Forecasting, Lstm, Deep Learning.
train LSTM model model = Sequential() model.add(LSTM(units=72, activation='tanh', input_shape=(look_back, 1))) model.add(Dense(1)) model.compile(loss='mean_squared_error', optimizer='Adam', metrics=['mape']) model.fit(x=X_train, y=y_train, epochs=500, batch_size=18, verbose=2) # Make predictions