I was wrong to trust you
![]()
Your update rule is not correct. Check for the b.
![]()
Ok, I looked at this so many times, that at the end I got blind… Sorry for the bother, all good!
Notice that your second cost value after 100 iterations is actually larger than the first one, not smaller. Are you sure that you’re not adding instead of subtracting when you do the “update parameters” logic? Or that you’re somehow over-riding the learning rate value?
haha, i’m sorry, w update is correct but b is wrong, it’s missing d. i didn’t check carefully, thanks for your time
Yes, I was going to say that the code might look right at first glance, but programming is always a game of details. A single character missing or in the wrong place can ruin everything!
Glad to hear you found the issue!
