We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 509b7c4 + c5ce8ff commit 9bdfcceCopy full SHA for 9bdfcce
1 file changed
doc/mlp.txt
@@ -289,8 +289,8 @@ The code that computes the new cost is:
289
# the model plus the regularization terms (L1 and L2); cost is expressed
290
# here symbolically
291
cost = classifier.negative_log_likelihood(y) \
292
- + L1_reg * L1 \
293
- + L2_reg * L2_sqr
+ + L1_reg * classifier.L1 \
+ + L2_reg * classifier.L2_sqr
294
295
296
We then update the parameters of the model using the gradient. This code is
0 commit comments