Data Science, Machine Learning, Artificial Intelligence, Technology, Fintech.
scales the dataset so that all the input features lie between 0 and 1. from sklearn.preprocessing import MinMaxScaler scaler = MinMaxScaler(feature_range=(0,1)) aapl_data_scaled = scaler.fit_transform(aapl_data['Close'].values.reshape(-1,1)) Creating Sequences LSTM models require input to be in a