You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
X_train_norm = (X_train - np.mean(X_train)) / np.std(X_train) use the mean and std of whole dataset. I think the correct way is to use mean and std of each column, X_train_norm = (X_train - np.mean(X_train, axis=0)) / np.std(X_train, axis=0)
X_train_norm = (X_train - np.mean(X_train)) / np.std(X_train)
use the mean and std of whole dataset. I think the correct way is to use mean and std of each column,X_train_norm = (X_train - np.mean(X_train, axis=0)) / np.std(X_train, axis=0)
machine-learning-book/ch12/ch12_part2.py
Line 239 in 92e2320
(forgive my poor English)
The text was updated successfully, but these errors were encountered: