Week 2 - Model bug

Good morning everyone, I am having an issue with my model prediction code.

Please, could someone kindly look at it and tell me where my issue lies.

Thank you.

[Removed uploaded code]

You want to use the optimize function instead of propagate

Thank you. I just tried using the optimize function based on ur recommendation but it didn’t solve the problem.

This was the error it brought up.

Please remove the , 0.0 after initialize_with_zeros() call. w and b are returned from this function. Also, you should pass all the relevant parameters to optimize function.

Thank you very much, it worked. Am so grateful for ur help.