mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
remove notes dir, these can go in GitHub issues
This commit is contained in:
1 parent
165fe9d7c2
commit
cbff0bff42
2 files changed
-10
No files matched your search
@@ -1,5 +0,0 @@
|
||||
# Notes
|
||||
|
||||
1. In `LinearRegressionModel`, the `requires_grad` and `dtype` parameters to `torch.randn` are redundant, as `nn.Parameter` takes care of setting them.
|
||||
|
||||
2. Again in `LinearRegressionModel`, the `forward` function calculates $w \cdot x + b$, but in the previous notebook, you introduced the linear function in its general form, $x \cdot A^{T} + b$. Since this example is using vectors, it doesn't matter, but it might be worth to note this difference.
|
||||
@@ -1,5 +0,0 @@
|
||||
# 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