C1 W3 Assignment Exercise 02

what is the wrong with my code please

Your code appears to not compute the cost value correctly.

“nan” means “not a number”. So something in your code is not returning a numerical value for the cost.

actually I don’t know what is the wrong with my code

{mentor edit - code removed)

  1. Please don’t post your code on the discussion forum. That’s not allowed by the Honor Code.
  2. Multiply w and X - don’t add them.
1 Like