Improving the way neural networks learn http://neuralnetworksanddeeplearning.com/chap3.html#the_cross-entropy_cost_function