Skip to content

Commit

Permalink
Fix a mistake in pv021/trenink
Browse files Browse the repository at this point in the history
Thanks, Kuba!
  • Loading branch information
cafour committed Jan 7, 2024
1 parent 1978cfa commit 6f0fac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pv021/trenink.ad
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ NOTE: Uvědom si, že tyhle stem:[\color{red}\frac{\partial E_k}{\partial y_j}]
3. backward pass -- od konce pro každou vrstvu spočítej stem:[\frac{\partial E_k}{\partial y_j}]
a. pokud stem:[j \in Y], pak stem:[\frac{\partial E_k}{\partial y_j} = y_j - d_{kj}]
b. pokud stem:[j \in Z \setminus Y \cup X ], a stem:[j] je v stem:[l]-té vrstvě, pak
stem:[\frac{\partial E_k}{\partial y_j} = \sum_{r \in j^{\rightarrow}} \frac{\partial E_k}{\partial y_j} \cdot \sigma'_r(\xi_r) \cdot w_{rj}]
stem:[\frac{\partial E_k}{\partial y_j} = \sum_{r \in j^{\rightarrow}} \frac{\partial E_k}{\partial y_r} \cdot \sigma'_r(\xi_r) \cdot w_{rj}]
4. weight update -- pro všechna stem:[w_{ji}] spočítej
stem:[\frac{\partial E_k}{\partial w_{ji}} := \frac{\partial E_k}{\partial y_j} \cdot \sigma'_j(\xi_j) \cdot y_i]
5. stem:[\varepsilon_{ji} := \varepsilon_{ji} + \frac{\partial E_k}{\partial w_{ji}}]
Expand Down

0 comments on commit 6f0fac5

Please sign in to comment.