It’s not clear to me how to compute idx in step 3 of sample() in C5W1_Assignment_2, given that y is not 1D array. Raveling the array does not give me the correct sequence. Is there anything else that needs to be done to y besides raveling it ?
Thanks