So the result I get from gradient_check
is 0.99999999999998. Well I’ve been through the function quite a few times but either a coincidence (a big one) or I’m wondering if I missed just adding difference= 1 - difference
. If that was the case, my result would be valid and 1.9984014443252818e-14.
This is the first time I’ve got stuck on an exercise since the first course, I’ve read the function so many times and I believe I’m good. But that 0.99999999999998 makes me wonder if it’s just the final calculation that is missing the adjustment.
Thank you in advance.