Softmax Regression
From Ufldl
(→Cost Function) |
(→Cost Function) |
||
Line 152: | Line 152: | ||
of the class label. Note also that in softmax regression, we have that | of the class label. Note also that in softmax regression, we have that | ||
<math> | <math> | ||
- | p(y^{(i)} = j | x^{(i)} ; \theta) = \frac{e^{\theta_j^T x^{(i)}}}{ | + | p(y^{(i)} = j | x^{(i)} ; \theta) = \frac{e^{\theta_j^T x^{(i)}}}{\sum_{l=1}^k e^{ \theta_l^T x^{(i)}} } |
</math>. | </math>. | ||