Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.

Commit 10420b0

Browse files
committed
tweak
Signed-off-by: Terence Parr <[email protected]>
1 parent 8168433 commit 10420b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/matrix-calculus/index.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1232,9 +1232,9 @@ And for the partial of the cost function itself we get:
12321232
0 & \mathbf{w} \cdot \mathbf{x}_i + b \leq 0\\
12331233
2(\mathbf{w}\cdot\mathbf{x}_i+b-y_i) & \mathbf{w} \cdot \mathbf{x}_i + b > 0\\
12341234
\end{cases}\\\\
1235-
& = & \begin{cases}
1235+
& = & \frac{2}{N} \sum_{i=1}^N \begin{cases}
12361236
0 & \mathbf{w} \cdot \mathbf{x}_i + b \leq 0\\
1237-
\frac{2}{N} \sum_{i=1}^N (\mathbf{w}\cdot\mathbf{x}_i+b-y_i) & \mathbf{w} \cdot \mathbf{x}_i + b > 0\\
1237+
\mathbf{w}\cdot\mathbf{x}_i+b-y_i & \mathbf{w} \cdot \mathbf{x}_i + b > 0\\
12381238
\end{cases}
12391239
\end{eqnarray*}
12401240
</latex>

0 commit comments

Comments
 (0)