Backpropagation method modification using Taylor series to improve accuracy of offline neural network training