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
In part 2 where we try to reshape the training and test examples, i.e. to flatten matrix "train_set_x_orig" and "test_set_x_orig".
In this note, the author uses "train_set_x_flatten = train_set_x_orig.reshape(train_set_x_orig.shape[1]*train_set_x_orig.shape[2]*train_set_x_orig.shape[3],train_set_x_orig.shape[0])", which fails in making every colum as a training example and a wrong result of train accuracy and test accuracy.
I think "train_set_x_flatten = train_set_x_orig.reshape(train_set_x_orig.shape[0], -1).T" would be better.
please feel free to discuss this:)
The text was updated successfully, but these errors were encountered:
In part 2 where we try to reshape the training and test examples, i.e. to flatten matrix "train_set_x_orig" and "test_set_x_orig".
In this note, the author uses "train_set_x_flatten = train_set_x_orig.reshape(train_set_x_orig.shape[1]*train_set_x_orig.shape[2]*train_set_x_orig.shape[3],train_set_x_orig.shape[0])", which fails in making every colum as a training example and a wrong result of train accuracy and test accuracy.
I think "train_set_x_flatten = train_set_x_orig.reshape(train_set_x_orig.shape[0], -1).T" would be better.
please feel free to discuss this:)
The text was updated successfully, but these errors were encountered: