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)
- Please don’t post your code on the discussion forum. That’s not allowed by the Honor Code.
- Multiply w and X - don’t add them.
1 Like