W3_A1_Ex-5_test error

Code deleted, issue resolved.

Hi @iceblock ,

Welcome to the community! This is your first post.

You have not implemented the cost function. What you did was to copy the formulas provided in the hint which are just a part of it.

If you scroll up a bit, you’ll find formula (13). That’s the formula you’ll want to implement here.

𝐽=βˆ’1π‘šβˆ‘π‘–=1π‘š(𝑦(𝑖)log(π‘Ž2)+(1βˆ’π‘¦(𝑖))log(1βˆ’π‘Ž2))

Note: Please remove your code from your post as publishing code goes against the code of honor.

Thanks,

Juan

Thanks! I misinterpreted the meaning of numbers in the round bracket.
Yan

Great! I hope you can finish this cost formula. It will be with you from now on :slight_smile:

Please let me know if you find any other issue.

Juan