We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23d7a5a commit a793fe7Copy full SHA for a793fe7
chapter_linear-classification/softmax-regression.md
@@ -245,7 +245,7 @@ Assume that we are given a minibatch $\mathbf{X} \in \mathbb{R}^{n \times d}$
245
of $n$ examples with dimensionality (number of inputs) $d$.
246
Moreover, assume that we have $q$ categories in the output.
247
Then the weights satisfy $\mathbf{W} \in \mathbb{R}^{d \times q}$
248
-and the bias satisfies $\mathbf{b} \in \mathbb{R}^{1\times q}$.
+and the bias satisfies $\mathbf{b} \in \mathbb{R}^{n \times q}$.
249
250
$$ \begin{aligned} \mathbf{O} &= \mathbf{X} \mathbf{W} + \mathbf{b}, \\ \hat{\mathbf{Y}} & = \mathrm{softmax}(\mathbf{O}). \end{aligned} $$
251
:eqlabel:`eq_minibatch_softmax_reg`
0 commit comments