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
If it's not too much, I have a suggestion for a cleaner implementation of x_vals normalization.
Instead of defining a separate function, and since the objective of normalization is just to allow for faster convergence, we could perform the following:
Hi,
If it's not too much, I have a suggestion for a cleaner implementation of x_vals normalization.
Instead of defining a separate function, and since the objective of normalization is just to allow for faster convergence, we could perform the following:
x_vals_train = x_vals_train / x_vals_train.max(axis=0)
x_vals_test = x_vals_test / x_vals_test.max(axis=0)
This implementation is cleaner and achieve similar loss results. Do let me know what you think.
Sincerely,
Yi Xiang
chongyixiang@gmail.com
The text was updated successfully, but these errors were encountered: