Closed llgithubll closed 6 years ago
http://neuralnetworksanddeeplearning.com/chap3.html#overfitting_and_regularization - please take a look at equation 85
Yes, it should not be in the loop, as you calculate total cost for all vectors (x and y respectively).
the cost of regularization should not in the loop?