diff --git a/cn-Book/附录D.给训练循环添加高级技巧.md b/cn-Book/附录D.给训练循环添加高级技巧.md index 2134930..8a56c32 100644 --- a/cn-Book/附录D.给训练循环添加高级技巧.md +++ b/cn-Book/附录D.给训练循环添加高级技巧.md @@ -190,11 +190,11 @@ plt.show() 用数学术语来说,对于一个由分量组成的向量 v = [v1, v2, ..., vn],L2 范数描述为: -$$ |v|_{2}=\sqrt{v_{1}^{2}+v_{2}^{2}+\ldots+v_{n}^{2}} $$ +$$ \text|v|_{2}=\sqrt{v_{1}^{2}+v_{2}^{2}+\ldots+v_{n}^{2}} $$ 这种计算方法也适用于矩阵。例如,考虑以下梯度矩阵: -$$ |v|_{2}=\sqrt{v_{1}^{2}+v_{2}^{2}+\ldots+v_{n}^{2}}G=\left[\begin{array}{ll} +$$ \text|v|_{2}=\sqrt{v_{1}^{2}+v_{2}^{2}+\ldots+v_{n}^{2}}G=\left[\begin{array}{ll} 1 & 2 \\ 2 & 4 \end{array}\right] $$ \ No newline at end of file