I am little bit confused how to calculate the partial derivatives of sigmoid function in python. Since in general we can calculate that by using the given code: Example: f(x,y) = x4 + x * y4 w.r.t x. would be then :
import sympy as sym
#Derivatives of multivariable function
x , y = sym.symbols('x y')
f = x**4+x*y**4
#Differentiating partially w.r.t x
derivative_f = f.diff(x)
derivative_f
how would the code work for partial derivatives of this then:
I tried to sub to the same function but I think I am doing something incorrectly