C5W4 Exercise 1 _submatrices of odd and even columns

I am not sure what this error even means or why am I getting it as the dimensions of my angles is correct as shown above. This is for exercise 1.

There is an error in your get_angles() function.
No, the shape of your angles return value is not correct:
It is tested twice.
By adding this code to the get_angles() function:
print("angles shape:",angles.shape)
…you should get these results:
angles shape: (4, 16)
All tests passed
angles shape: (4, 8)

use this :slight_smile:
angles = pos/np.power(10000,((2*(i//2))/d))

1 Like