You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
due to the default gc_dx(x::Number)=cbrt(eps(float(x))), and therefore they are ignored when summed with the element of x, resulting numerically in f(w2) == f(w1).
By the way, the gradcheck method now is not even in the library but in test/gradcheck.jl
@CarloLucibello is correct: in the output above, nd is the numerical derivative and d is the derivative computed by the program. Even though the numerical derivative is false due to the numeric error, grad computes d=1/1024 which is the correct result.
I am moving gradcheck, addtest, display and other non-essential functions out of the package to reduce bloat. They are still available as stand-alone utilities in AutoGrad.dir("util") and AutoGrad.dir("test").
I came across with interesting bug in
gradcheck
. Whenw
is initialized with zerosgradcheck
fails. Otherwise it gives the correct output.The text was updated successfully, but these errors were encountered: