Visual studio code 在运行在VsCode内的jupyter笔记本中的html标记内呈现LaTex代码
如何在运行VsCode的jupyter笔记本中正确显示以下html表?该表在浏览器上正确呈现,但不在VsCode内 LaTex包装$$适用于html表外的元素,但不适用于表内的元素。有办法解决这个问题吗 编辑:我在某个地方读到jupyter使用MathJax来实现这一点,它也可以在VsCode中使用吗Visual studio code 在运行在VsCode内的jupyter笔记本中的html标记内呈现LaTex代码,visual-studio-code,jupyter-notebook,latex,Visual Studio Code,Jupyter Notebook,Latex,如何在运行VsCode的jupyter笔记本中正确显示以下html表?该表在浏览器上正确呈现,但不在VsCode内 LaTex包装$$适用于html表外的元素,但不适用于表内的元素。有办法解决这个问题吗 编辑:我在某个地方读到jupyter使用MathJax来实现这一点,它也可以在VsCode中使用吗 <table style="width:100%"> <tr> <td> </td> <td>
<table style="width:100%">
<tr>
<td> </td>
<td> **Shape of W** </td>
<td> **Shape of b** </td>
<td> **Activation** </td>
<td> **Shape of Activation** </td>
<tr>
<tr>
<td> **Layer 1** </td>
<td> $(n^{[1]},12288)$ </td>
<td> $(n^{[1]},1)$ </td>
<td> $Z^{[1]} = W^{[1]} X + b^{[1]} $ </td>
<td> $(n^{[1]},209)$ </td>
<tr>
<tr>
<td> **Layer 2** </td>
<td> $(n^{[2]}, n^{[1]})$ </td>
<td> $(n^{[2]},1)$ </td>
<td>$Z^{[2]} = W^{[2]} A^{[1]} + b^{[2]}$ </td>
<td> $(n^{[2]}, 209)$ </td>
<tr>
<tr>
<td> $\vdots$ </td>
<td> $\vdots$ </td>
<td> $\vdots$ </td>
<td> $\vdots$</td>
<td> $\vdots$ </td>
<tr>
<tr>
<td> **Layer L-1** </td>
<td> $(n^{[L-1]}, n^{[L-2]})$ </td>
<td> $(n^{[L-1]}, 1)$ </td>
<td>$Z^{[L-1]} = W^{[L-1]} A^{[L-2]} + b^{[L-1]}$ </td>
<td> $(n^{[L-1]}, 209)$ </td>
<tr>
<tr>
<td> **Layer L** </td>
<td> $(n^{[L]}, n^{[L-1]})$ </td>
<td> $(n^{[L]}, 1)$ </td>
<td> $Z^{[L]} = W^{[L]} A^{[L-1]} + b^{[L]}$</td>
<td> $(n^{[L]}, 209)$ </td>
<tr>
</table>
Remember that when we compute $W X + b$ in python, it carries out broadcasting. For example, if:
$$ W = \begin{bmatrix}
j & k & l\\
m & n & o \\
p & q & r
\end{bmatrix}\;\;\; X = \begin{bmatrix}
a & b & c\\
d & e & f \\
g & h & i
\end{bmatrix} \;\;\; b =\begin{bmatrix}
s \\
t \\
u
\end{bmatrix}\tag{2}$$
Then $WX + b$ will be:
$$ WX + b = \begin{bmatrix}
(ja + kd + lg) + s & (jb + ke + lh) + s & (jc + kf + li)+ s\\
(ma + nd + og) + t & (mb + ne + oh) + t & (mc + nf + oi) + t\\
(pa + qd + rg) + u & (pb + qe + rh) + u & (pc + qf + ri)+ u
\end{bmatrix}\tag{3} $$
**W的形状**
**b的形状**
**激活**
**激活形状**
**第1层**
$(n^{[1]},12288)$
$(n^{[1]},1)$
$Z^{[1]}=W^{[1]}X+b^{[1]}$
$(n^{[1]},209)$
**第2层**
$(n^{[2]},n^{[1]}
$(n^{[2]},1)$
$Z^{[2]}=W^{[2]}A^{[1]}+b^{[2]}$
$(n^{[2]},209)$
$\vdots$
$\vdots$
$\vdots$
$\vdots$
$\vdots$
**L-1层**
$(n^{[L-1]},n^{[L-2]})
$(n^{[L-1]},1)$
$Z^{[L-1]}=W^{[L-1]}A^{[L-2]}+b^{[L-1]}$
$(n^{[L-1]},209)$
**L层**
$(n^{[L]},n^{[L-1]})
$(n^{[L]},1)$
$Z^{[L]}=W^{[L]}A^{[L-1]}+b^{[L]}$
$(n^{[L]},209)$
请记住,在python中计算$wx+b$时,它执行广播。例如,如果:
$$W=\begin{bmatrix}
j&k&l\\
m&n&o\\
p&q&r
\结束{bmatrix}\;\;X=\begin{bmatrix}
a&b&c酒店\\
d&e&f\\
g&h&i
\结束{bmatrix}\;\;b=\begin{bmatrix}
\\
t\\
U
\结束{bmatrix}\tag{2}$$
那么$WX+b$将是:
$$WX+b=\begin{bmatrix}
(ja+kd+lg)+s&(jb+ke+lh)+s&(jc+kf+li)+s\\
(ma+nd+og)+t&(mb+ne+oh)+t&(mc+nf+oi)+t\\
(pa+qd+rg)+u&(pb+qe+rh)+u&(pc+qf+ri)+u
\结束{bmatrix}\tag{3}$$