1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
import numpy as np import matplotlib.pyplot as plt import pandas as pd
dataset_train = pd.read_csv('Google_Stock_Price_Train.csv') training_set = dataset_train.iloc[:, 1:2].values
from sklearn.preprocessing import MinMaxScaler sc = MinMaxScaler(feature_range = (0, 1)) training_set_scaled = sc.fit_transform(training_set)
|