C1_W2_linear_regression Issue (Please Help)

I am seeing errors after running my code. Please what can I do, i am stuck here. Please anyone with a solution

Hi, you only need to divide your gradients by m once, outside of the for loop.

P.S. I am removing your image because we don’t encourage learners to share their assignment code. Next time, please just share the error, and you may be asked to send your code via direct message.

Sorry it won’t happen again. Thank you so much

Thank you @jinmi! Let us know if you have other questions.

hi, can you please explain it further? because i experienced the exact same error as this picture. thanks in advance

Please open a new thread for your question. Thank you.