Skip to content

Commit

Permalink
Fixed the hinge loss equation (#832)
Browse files Browse the repository at this point in the history
* Fixed the hinge loss equation

* Updated Hinge loss notation as per @Atcold 's request
  • Loading branch information
guydav committed Dec 12, 2022
1 parent e9ec5db commit 29e3e15
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/bn/week11/11-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ $$
### হিঞ্জ লস

$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$

<!-- Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$. -->
Expand Down
2 changes: 1 addition & 1 deletion docs/en/week11/11-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ If the energy function is able to ensure that the energy of the *most offending
### Hinge Loss

$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$

Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$.
Expand Down
4 changes: 2 additions & 2 deletions docs/es/week11/11-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,12 @@ Si la función de energía es capaz de asegurar que la energía de la *respuesta
### Pérdida de Bisagra

<!--$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$
-->

$$
L_{\text{bisagra}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{bisagra}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$

<!--Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$.
Expand Down
4 changes: 2 additions & 2 deletions docs/fr/week11/11-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ Si la fonction d'énergie est capable de garantir que l'énergie de la *réponse
### Hinge Loss
$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$
Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$.
Expand All @@ -497,7 +497,7 @@ A: It's arbitrary, but it affects the weights of the last layer.
### Perte *Hinge*

$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$

où $\bar Y^i$ est la *réponse incorrecte la plus offensante*. Cette perte impose que la différence entre la bonne réponse et la réponse incorrecte la plus offensante soit d'au moins $m$.
Expand Down
4 changes: 2 additions & 2 deletions docs/it/week11/11-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -441,15 +441,15 @@ If the energy function is able to ensure that the energy of the *most offending
### Perdita _hinge_

$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$

Dove $\bar Y^i$ è l'"errore più grave". Questa perdita fa sí che la differenza fra l'output giusto e l'errore più grave sia come minimo uguale a $m$.

<!-- ### Hinge Loss -->

<!-- $$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$
Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$. -->
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/week11/11-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ If the energy function is able to ensure that the energy of the *most offending
### ヒンジ損失

$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$
<!--
Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$. -->
Expand Down
2 changes: 1 addition & 1 deletion docs/ko/week11/11-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ $$
### 힌지 손실

$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$

<!--Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$.-->
Expand Down
4 changes: 2 additions & 2 deletions docs/tr/week11/11-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ Enerji fonksiyonu *en rahatsız edici yanlış cevabın* enerjisinin doğru ceva
<!--### Hinge Loss
$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$
Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$.
Expand All @@ -439,7 +439,7 @@ A: It's arbitrary, but it affects the weights of the last layer.-->
### Hinge Kayıp Terimi

$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$

$\bar Y^i$ *en rahatsız edici yanlış cevap* tır. Bu kayıp, doğru cevap ile en rahatsız edici yanlış cevap arasındaki farkın en az $m$ olmasını zorlar.
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/week11/11-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ If the energy function is able to ensure that the energy of the *most offending
### Hinge Loss
$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$
Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$.
Expand All @@ -405,7 +405,7 @@ A: It's arbitrary, but it affects the weights of the last layer.
### 合页损失 (Hinge Loss)

$$
L_{\text{hinge}}(W,Y^i,X^i)=\max(0,m+E(W,Y^i,X^i))-E(W,\bar Y^i,X^i)
L_{\text{hinge}}(W,Y^i,X^i)=( m + E(W,Y^i,X^i) - E(W,\bar Y^i,X^i) )^+
$$

Where $\bar Y^i$ is the *most offending incorrect answer*. This loss enforces that the difference between the correct answer and the most offending incorrect answer be at least $m$.
Expand Down

0 comments on commit 29e3e15

Please sign in to comment.