Softmax

对于 \(n\) 维向量 \(\mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \\ \vdots \\ x_n \end{bmatrix}\) 中的元素 \(x_i\),可以计算 softmax:

\[\text{softmax}(x_i)=\frac{e^{x_i}}{\sum_{j=1}^{n}e^{x_j}} \]

posted @ 2025-01-24 01:05  Undefined443  阅读(11)  评论(0)    收藏  举报