Skip to content

Commit 9bdfcce

Browse files
committed
Merge pull request lisa-lab#22 from PaulHobbs/patch-1
Fix typo in mlp.txt
2 parents 509b7c4 + c5ce8ff commit 9bdfcce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/mlp.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ The code that computes the new cost is:
289289
# the model plus the regularization terms (L1 and L2); cost is expressed
290290
# here symbolically
291291
cost = classifier.negative_log_likelihood(y) \
292-
+ L1_reg * L1 \
293-
+ L2_reg * L2_sqr
292+
+ L1_reg * classifier.L1 \
293+
+ L2_reg * classifier.L2_sqr
294294

295295

296296
We then update the parameters of the model using the gradient. This code is

0 commit comments

Comments
 (0)