I notice that my trainData is not getting a 0 mean when i check it with np.mean(trainData).

# In[4]:dfTrain = diabetesDF[:650]dfTest = diabetesDF[650:750]dfCheck = diabetesDF[:750]# Separating Label and FeaturestrainLabel = np.asarray(dfTrain['Outcome'])trainData = np.asarray(dfTrain.drop('Outcome', 1))testLabel = np.asarray(dfTest['Outcome'])testData = np.asarray(dfTest.drop('Outcome', 1))means = np.mean(trainData, axis=0)stds = np.std(trainData, axis=0)trainData = (trainData - means)/stdstestData = (testData - means)/stdsnp.mean(trainData, axis=0)# Out[4]:

Read more… (21 words)