Fixed regularization in cost function for NN