Add notes, fix typos.

This commit is contained in:
Ben Eyal committed 2022-02-10 22:11:12 +02:00
1 parent fe212757e2
commit fe5d4f4943
2 files changed
+673 -668

No files matched your search

File diff suppressed because it is too large. Load diff
+5
View File
@@ -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.