Skip to content

Commit

Permalink
Small correction in Chapter 4.4 (d2l-ai#2289)
Browse files Browse the repository at this point in the history
*[...] The correct labels are $1$ and $2$ respectively [...]* ... but the code is using [0,2]
  • Loading branch information
finale80 authored Sep 2, 2022
1 parent c6d7838 commit d34d1df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ allows us to select the matching terms in $\hat{\mathbf{y}}$.

To see this in action we [**create sample data `y_hat`
with 2 examples of predicted probabilities over 3 classes and their corresponding labels `y`.**]
The correct labels are $1$ and $2$ respectively.
The correct labels are $0$ and $2$ respectively (i.e., the first and third class).
[**Using `y` as the indices of the probabilities in `y_hat`,**]
we can pick out terms efficiently.

Expand Down

0 comments on commit d34d1df

Please sign in to comment.