Data Science, Machine Learning, Artificial Intelligence, Technology, Fintech.
model (adding batch dimension) X_latest = np.reshape(X_latest, (X_latest.shape[0], X_latest.shape[1], 1)) # Making predictions for the next 4 candles predicted_stock_price = model.predict(X_latest) predicted_stock_price = scaler.inverse_transform(predicted_stock_price) print("Predicted Stock Prices