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 the assignment, you made a mistake that you cannot simply reshape a matrix by using code like this (suppose A is a 2 * 3 matrix):
A.reshape(3,2) Instead, you should reshape it like this:
A.reshape(2,3).T The specific place the mistake you made is:
In the assignment, you made a mistake that you cannot simply reshape a matrix by using code like this (suppose A is a 2 * 3 matrix):
A.reshape(3,2)
Instead, you should reshape it like this:
A.reshape(2,3).T
The specific place the mistake you made is:
START CODE HERE ### (≈ 2 lines of code)
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])
test_set_x_flatten = test_set_x_orig.reshape(test_set_x_orig.shape[1]*test_set_x_orig.shape[2]*test_set_x_orig.shape[3],test_set_x_orig.shape[0])
END CODE HERE
You should change it to:
START CODE HERE ### (≈ 2 lines of code)
train_set_x_flatten = train_set_x_orig.reshape(train_set_x_orig.shape[0],train_set_x_orig.shape[1]*train_set_x_orig.shape[2]*train_set_x_orig.shape[3]).T
test_set_x_flatten = test_set_x_orig.reshape(test_set_x_orig.shape[0]test_set_x_orig.shape[1]*test_set_x_orig.shape[2]*test_set_x_orig.shape[3]).T
END CODE HERE
The text was updated successfully, but these errors were encountered: