add third chapter
This commit is contained in:
parent
57e738f847
commit
34aafd088c
|
|
@ -1000,7 +1000,11 @@ tensor([[2., 2., 0., 2., 2., 0.],
|
|||
>
|
||||
>
|
||||
>
|
||||
> $$ \text{softmax}\left(z_{i}\right)=\frac{e^{z_{i}}}{\sum_{j} e^{z_{j}}} $$
|
||||
> Softmax 函数的公式如下:
|
||||
>
|
||||
> $$ \text{softmax}\left(z_{i}\right)=\frac{e^{z_{i}}}{\sum_{j} e^{z_{j}}} $$
|
||||
>
|
||||
> 其中z<sub>i</sub>是输入的每个分数(即未激活的原始值),e 是自然对数的底。这个公式的作用是将输入向量中的每个元素转换为一个概率值,且所有值的和为 1。
|
||||
>
|
||||
>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue