I seem to be having a size/shape/indexing error for exercise 3. I used np.shape(Y)[0] to get the number of n_observations for any matrix Y. Are there any suggestions for me to try or consider? For exercises 4 and 5 I also get IndexErrors.
Hi @plausible. Your latest error means the shape of the original array could not be reshaped into a 55x4096 array. This is because the product of dimensions in the target shape is 55*4096=225280, which is not equal to 12390400.
Most likely, the shape of the mean_vector or the mean_matrix is incorrect. When creating the mean_vector, be careful which axis argument you pass in. And when creating the mean_matrix, you will need to repeat it n_observations times.
I have solved 4 exercises of the Week #4 programming assignment and submitted the result but the system is showing 0 grade, why? This is the screenshot.