Course1 Week2 Excercise 6 - optimize

Hi!
I have no idea why the error will happen. The costs shows: [array(0.5826722)] and it send me an AssertionError: Wrong values for costs. [array(5.80154532), array(nan)] != [5.80154532, 0.31057104]. The propagation function is correct and all the test passed before this exercise. Is there any method to solve this problem? Thanks!!

Hi @Happysponge ,

Welcome to the community! This is your first post :slight_smile:

Regarding your error: Please review the logic used in the update of w and b. Right now you are adding the dw and db respectively to update w and b.

Should you be adding?

Try a different option here.

Juan

NOTE: Please delete your code. It is against the Code of Honor to post code in a post :slight_smile:

1 Like

Thanks for your replay! The problem have been solved!
Sorry for posting the code on the post!

I am glad this was solved! Lets move forward now! :slight_smile:

1 Like