Skip to content

Commit a793fe7

Browse files
authored
Fixed typo in dimensions of bias term
1 parent 23d7a5a commit a793fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter_linear-classification/softmax-regression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Assume that we are given a minibatch $\mathbf{X} \in \mathbb{R}^{n \times d}$
245245
of $n$ examples with dimensionality (number of inputs) $d$.
246246
Moreover, assume that we have $q$ categories in the output.
247247
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}$.
248+
and the bias satisfies $\mathbf{b} \in \mathbb{R}^{n \times q}$.
249249

250250
$$ \begin{aligned} \mathbf{O} &= \mathbf{X} \mathbf{W} + \mathbf{b}, \\ \hat{\mathbf{Y}} & = \mathrm{softmax}(\mathbf{O}). \end{aligned} $$
251251
:eqlabel:`eq_minibatch_softmax_reg`

0 commit comments

Comments
 (0)