Data Science, Machine Learning, Artificial Intelligence, Technology, Fintech.
price and scale it closing_prices = data['Close'].values.reshape(-1, 1) scaler = MinMaxScaler(feature_range=(0, 1)) scaled_data = scaler.fit_transform(closing_prices) # Predict the next 4 days iteratively predicted_prices = [] current_batch = scaled_data[-60:].reshape(1, 60, 1) # Most recent 60