当前位置: 首页 > 工具软件 > KaTeX > 使用案例 >

KaTeX parse error: No such environment: align

闾丘山
2023-12-01

csdn 使用的是 KaTeX,不支持 align,但可以用 aligned。

$$\begin{aligned}
\frac{\partial l_n}{\partial w}&=-[\frac{y_n}{\sigma(z)}\sigma'(z)x - \frac{1-y_n}{1-\sigma(z)}\sigma'(z)x] \\
&= \frac{\sigma(z)-y_n}{\sigma(z)[1-\sigma(z)]}\sigma'(z)x \\
\end{aligned}$$

∂ l n ∂ w = − [ y n σ ( z ) σ ′ ( z ) x − 1 − y n 1 − σ ( z ) σ ′ ( z ) x ] = σ ( z ) − y n σ ( z ) [ 1 − σ ( z ) ] σ ′ ( z ) x \begin{aligned} \frac{\partial l_n}{\partial w}&=-[\frac{y_n}{\sigma(z)}\sigma'(z)x - \frac{1-y_n}{1-\sigma(z)}\sigma'(z)x] \\ &= \frac{\sigma(z)-y_n}{\sigma(z)[1-\sigma(z)]}\sigma'(z)x \\ \end{aligned} wln=[σ(z)ynσ(z)x1σ(z)1ynσ(z)x]=σ(z)[1σ(z)]σ(z)ynσ(z)x

 类似资料:

相关阅读

相关文章

相关问答