January 2019
Intermediate to advanced
294 pages
6h 43m
English
Let's work on a use case that will help us in understanding the network.
We will work on a time series problem. We have got the Google stock price dataset. One being training and the other being test. We will now look at a use case to forecast the stock prices of Google:
import numpy as npimport matplotlib.pyplot as pltimport 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 MinMaxScalersc = MinMaxScaler(feature_range = (0, 1))training_set_scaled = sc.fit_transform(training_set)
Read now
Unlock full access