aImplicit and Explicit GradientsLet f be a function of z,x such that z=cos(x) and f(z,x)= z*x2. How do we calculate āf(z,x)
āx=?.One simple way is to subsitute z=cos(x) in f and then applying chain rule.Another way is to use explicit and implicit gradient. This is used when a function parameters are itself a function of another parameter.āf(z,x)
āx=ā+f(z,x)
āx+āf(z,x)
āzāz
āxwhere ā+f(z,x)
āx is called implicit gradientand āf(z,x)
āzāz
āx is called explicit gradientTo calculate implicit gradient, ā+f(z,x)
āx assume all other variables except x as constants.āf(z,x)
āx=ā+f(z,x)
āx+āf(z,x)
āzāz
āxā+f(z,x)
āx= cos(x)*2xāf(z,x)
āz= x2āz
āx=-sin(x)āf(z,x)
āx= cos(x)*2x -x2*sin(x)Applying Chain Rule toāš¼Lval(w', α), where w'= w ā ξāw Ltrain(w, α)?Observe w' is a function of š¼ itself. To apply chain rule we will use implicit and explicit gradients.Roughly speaking we can write this asāLval(w',š¼)