Error about initialize_parameters_deep in Week4 assignment 1

You are “mixing metaphors” there by using both dot products and elementwise multiply in your cost computation. It’s better to be consistent. Also note that on the dot product computation for the y = 1 case, it matters which operand you transpose. Please see this thread for more details on that point.

1 Like