partial derivative neural network