mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Add notes, fix typos.
This commit is contained in:
1 parent
fe212757e2
commit
fe5d4f4943
2 files changed
+673
-668
No files matched your search
+668
-668
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,5 @@
|
||||
# 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.
|
||||
Reference in new issue
Block a user