Week2 logistic regression exercise 6-optimization

Nan and infinite values in cost. I tried normalization, inf and Nan values didn’t come but dw assertion error came

The first cost calculation seems to be right, but others are not. Assuming that a unit test for propagate() was passed, the most possible case is incorrect updates for “w” and “b”. Did you properly subtract “dw*learning rate” ? Adding “dw*learning rate” eventually causes inf or nan for cost calculation.
Please double check.

Thanks, I was adding instead of subtracting.