diff options
author | RĂ©mi Emonet <twitwi@users.noreply.github.com> | 2017-03-08 18:39:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 18:39:39 +0300 |
commit | b4a58c5c93966eb7f11587548decacd1a9b955be (patch) | |
tree | 91fc513d383ad2fa3b860b54cf7f3d5700e684c0 /doc | |
parent | 5af10e2807826646d3ebda009b8c3524b42c5758 (diff) |
Fix possible math typo in MultiMarginCriterion doc
Diffstat (limited to 'doc')
-rw-r--r-- | doc/criterion.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/criterion.md b/doc/criterion.md index cb2bbd0..d30d1e3 100644 --- a/doc/criterion.md +++ b/doc/criterion.md @@ -419,7 +419,7 @@ Optionally, you can give non-equal weighting on the classes by passing a 1D `wei The loss function then becomes: ```lua -loss(x, y) = sum_i(max(0, w[y] * (margin - x[y] - x[i]))^p) / x:size(1) +loss(x, y) = sum_i(max(0, w[y] * (margin - x[y] + x[i]))^p) / x:size(1) ``` This criterion is especially useful for classification when used in conjunction with a module ending in the following output layer: |