The heat equation in one dimension is a [[https://en.wikipedia.org/wiki/Parabolic_partial_differential_equation|parabolic PDE]]. The one dimensional transient heat equation is contains a partial derivative with respect to time and a second partial derivative with respect to distance.{$\rho c_p...
Consider the simple 1D case of a equidistant grid with a first derivative∂∂xalong the only axis (0): importnumpyasnpfromfindiffimportDiff# define the grid:x=np.linspace(0,1,100)# the array to differentiate:f=np.sin(x)# as an example# Define the derivative:d_dx=Diff(0,x[1]-...
# define operatord_dx=FinDiff(0,dx)# apply operatordf_dx=d_dx(f)# df_dx is now an array of the same shape as f containing the partial derivative The partial derivative , wherezmeans the 2nd axis, is d_dz=FinDiff(2,dz)df_dz=d_dz(f) ...
and rely on approximating the partial derivative of an unknown regression function without first fitting a model and then approximating its partial derivative. We investigate settings where contemporary partial dependence methods—including FPD, ALE, and SHAP methods—give biased results. Furthermore, we...
# define operatord_dx=FinDiff(0,dx)# apply operatordf_dx=d_dx(f)# df_dx is now an array of the same shape as f containing the partial derivative The partial derivative , wherezmeans the 2nd axis, is d_dz=FinDiff(2,dz)df_dz=d_dz(f) ...