Data Science, Machine Learning, Artificial Intelligence, Technology, Fintech.
current_batch = np.append(current_batch[:, 1:, :], next_prediction_reshaped, axis=1) # Inverse transform the prediction to the original price scale predicted_prices.append(scaler.inverse_transform(next_prediction)[0, 0]) print("Predicted Stock Prices for the next 4 days: ", predicted_prices)