Errata fixes (#45)

* fixes to Rmd from Daniela's errata
This commit is contained in:
Jonathan Taylor
2025-04-03 12:34:12 -07:00
parent 8fa98567ee
commit e03d0b2dd6
8 changed files with 25 additions and 23 deletions

View File

@@ -1137,7 +1137,7 @@ img_preds = resnet_model(imgs)
Lets look at the predicted probabilities for each of the top 3 choices. First we compute
the probabilities by applying the softmax to the logits in `img_preds`. Note that
we have had to call the `detach()` method on the tensor `img_preds` in order to convert
it to our a more familiar `ndarray`.
it to a more familiar `ndarray`.
```{python}
img_probs = np.exp(np.asarray(img_preds.detach()))