Difference between np.dot and np.multiply with np.sum in binary cross-entropy loss calculation
Difference between np.dot and np.multiply with np.sum in binary cross-entropy loss calculation Question: I have tried the following code but didn’t find the difference between np.dot and np.multiply with np.sum Here is np.dot code logprobs = np.dot(Y, (np.log(A2)).T) + np.dot((1.0-Y),(np.log(1 – A2)).T) print(logprobs.shape) print(logprobs) cost = (-1/m) * logprobs print(cost.shape) print(type(cost)) print(cost) Its output is …