Week2, exercise 7, suggestion/bug:

Coincidentally: the tests for this exercise pass if the code:

A = np.dot(w.T,X)

is used.

This is the test cell for the predict function. Eeeeek! You’re right: that test does not detect this error.

Thanks for pointing this out. I will file a bug about this and it should be easy to come up with a better test case.