the first code line for this grader cell should
mean_vector = None where # use np.mean to get the vector of means, remember to pass the correct axis argument
then
mean_matrix = None # use np.repeat to repeat the mean vector n_observations times
Then calculate mean matrix by use np.reshape to reshape into a matrix with the same size as Y. Remember to use order=âFâ
mean_matrix =None
Then subtract mean_matrix from centre data. The operations are performed elementwise
incorrect code, you are suppose to use np.dot and not np.transpose