July 2018
Intermediate to advanced
474 pages
13h 37m
English
This section walks through the steps to normalize the height and weight.
X = data_array[:,:2]y = data_array[:,2]
x_mean = X.mean(axis=0)x_std = X.std(axis=0)
def normalize(X): x_mean = X.mean(axis=0) x_std = X.std(axis=0) X = (X - X.mean(axis=0))/X.std(axis=0) return X
Read now
Unlock full access