Machine-Learning-for-Beginner-by-Python3 icon indicating copy to clipboard operation
Machine-Learning-for-Beginner-by-Python3 copied to clipboard

question about l2 norm in softmax_Anfany.py

Open rainneko opened this issue 6 years ago • 0 comments

In softmax_Anfany.py line 47, is the code l2norm = np.sum(0.5 * np.dot(self.weights.T, self.weights) / len(x)) missing the lambda for L2 norm? since the default lambda being 0.002, is it ought to be l2norm = np.sum(0.5 *0.002* np.dot(self.weights.T, self.weights) / len(x))?

rainneko avatar Jan 14 '19 16:01 rainneko