Neural network cost function.