Gradient checking wrong value

Hi, I’m getting the wrong Value, but I can not figure out why. Here’s my code:

{moderator edit - solution code removed}

Can anyone see what I’m doing wrong here?

I don’t know whether you actually “copy/pasted” your code or typed it in again, but notice that the variable name on the LHS of that assignment statement is misspelled. If that is your real code, that will not end well. :scream_cat:

1 Like

Hi, Thank you. I realized that yesterday and fixed the misspelling. It’s working now.