C1 W2 A2 propagate

It is fine to use np.dot to compute the cost, but the problem is Y and A are both 1 x m vectors, so you can’t just dot them “as is”: the dimensions don’t work. You need to understand how matrix multiplication works as a prerequisite here. Here’s another recent thread about this.

1 Like