from IPython.display import YouTubeVideo
YouTubeVideo('bxe2T-V8XRs')
%pylab inline
import numpy as np
X = np.array(([3, 5], [5, 1], [10, 2]), dtype=float)
y = np.array(([75], [82], [93]), dtype=float)
Populating the interactive namespace from numpy and matplotlib
X
array([[ 3., 5.], [ 5., 1.], [ 10., 2.]])
y
array([[ 75.], [ 82.], [ 93.]])
X = X/np.amax(X, axis=0)
X
array([[ 0.3, 1. ], [ 0.5, 0.2], [ 1. , 0.4]])
y = y/100
y
array([[ 0.75], [ 0.82], [ 0.93]])