update docs for PyTorch 2.0 starter (WIP)

This commit is contained in:
Daniel Bourke committed 2023-03-13 21:47:14 +10:00
1 parent 84e8be1409
commit e73b58f053
3 files changed
+5 -3

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ jobs:
# - run: pip install jupyter
- run: cp *.ipynb docs/ # copy all notebooks to docs folder
- run: cp 05_pytorch_going_modular.md docs/ # copy markdown section for 05 to docs folder
- run: cp extras/pytorch_2_intro.ipynb docs/ # copy PyTorch 2.0 section to docs
- run: cp extras/pytorch_extra_resources.md docs/
- run: cp extras/pytorch_cheatsheet.ipynb docs/
- run: cp extras/pytorch_most_common_errors.ipynb docs/
+3 -3
View File
@@ -956,7 +956,7 @@
"| Stochastic Gradient Descent (SGD) optimizer | Classification, regression, many others. | [`torch.optim.SGD()`](https://pytorch.org/docs/stable/generated/torch.optim.SGD.html) |\n",
"| Adam Optimizer | Classification, regression, many others. | [`torch.optim.Adam()`](https://pytorch.org/docs/stable/generated/torch.optim.Adam.html) |\n",
"| Binary cross entropy loss | Binary classification | [`torch.nn.BCELossWithLogits`](https://pytorch.org/docs/stable/generated/torch.nn.BCEWithLogitsLoss.html) or [`torch.nn.BCELoss`](https://pytorch.org/docs/stable/generated/torch.nn.BCELoss.html) |\n",
"| Cross entropy loss | Multi-class classification | [`torch.nn.CrossEntropyLoss`](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html) |\n",
"| Cross entropy loss | Mutli-class classification | [`torch.nn.CrossEntropyLoss`](https://pytorch.org/docs/stable/generated/torch.nn.CrossEntropyLoss.html) |\n",
"| Mean absolute error (MAE) or L1 Loss | Regression | [`torch.nn.L1Loss`](https://pytorch.org/docs/stable/generated/torch.nn.L1Loss.html) | \n",
"| Mean squared error (MSE) or L2 Loss | Regression | [`torch.nn.MSELoss`](https://pytorch.org/docs/stable/generated/torch.nn.MSELoss.html#torch.nn.MSELoss) | \n",
"\n",
@@ -2913,7 +2913,7 @@
"id": "f5Ephtx6f1jB"
},
"source": [
"### 8.1 Creating multi-class classification data\n",
"### 8.1 Creating mutli-class classification data\n",
"\n",
"To begin a multi-class classification problem, let's create some multi-class data.\n",
"\n",
@@ -3807,7 +3807,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.8.13"
}
},
"nbformat": 4,
+1
View File
@@ -42,6 +42,7 @@ nav:
- 07. PyTorch Experiment Tracking: '07_pytorch_experiment_tracking.ipynb'
- 08. Replicating Machine Learning Research Papers with PyTorch: '08_pytorch_paper_replicating.ipynb'
- 09. Deploying PyTorch Machine Learning Models: '09_pytorch_model_deployment.ipynb'
- A Quick PyTorch 2 Tutorial: 'pytorch_2_intro.ipynb'
- PyTorch Extra Resources: 'pytorch_extra_resources.md'
- PyTorch Cheatsheet: 'pytorch_cheatsheet.ipynb'
- Three Most Common PyTorch Errors: 'pytorch_most_common_errors.ipynb'