From cbff0bff4232a13f5195a1f5e0ccef53ee3374b1 Mon Sep 17 00:00:00 2001 From: Daniel Bourke Date: Mon, 14 Feb 2022 13:22:04 +1000 Subject: [PATCH] remove notes dir, these can go in GitHub issues --- notes/01_pytorch_workflow_notes.md | 5 ----- notes/02_pytorch_classification_notes.md | 5 ----- 2 files changed, 10 deletions(-) delete mode 100644 notes/01_pytorch_workflow_notes.md delete mode 100644 notes/02_pytorch_classification_notes.md diff --git a/notes/01_pytorch_workflow_notes.md b/notes/01_pytorch_workflow_notes.md deleted file mode 100644 index 788da70..0000000 --- a/notes/01_pytorch_workflow_notes.md +++ /dev/null @@ -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. diff --git a/notes/02_pytorch_classification_notes.md b/notes/02_pytorch_classification_notes.md deleted file mode 100644 index 3869d25..0000000 --- a/notes/02_pytorch_classification_notes.md +++ /dev/null @@ -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. \ No newline at end of file