mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
5 lines
473 B
Markdown
5 lines
473 B
Markdown
# Notes
|
|
|
|
1. In the `plot_decision_boundary` function, why use `X = X.to("cpu")` instead of `X.cpu()`?
|
|
|
|
2. Since softmax maps large numbers to large probabilities and small numbers to small probabilities, to my understanding, it is better to predict directly using `torch.argmax` without going through softmax, as softmax is a relatively costly operation. Of course, if we're interested in the probabilities (to show confidence or top-k predictions), softmax should be used. |