Logistic_Regression_with_a_Neural_Network_mindse

Hello,
I got following error on excercise 6:

ValueError: not enough values to unpack (expected 3, got 2)

{moderator edit - solution code removed}

Appreciate your help

Please share the full error. Maybe your implementation of propagate is incorrect.

Thanks, See below

{moderator edit - solution code removed}

Your returns (dw, db, cost) for propagate function are not correct. Go to Exercise 5 - propagate and check what are the returns of that function. They should be the same in optimize function as well when you call propagate function.

Best,
Saif.