mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Merge pull request #1054 from CarterT27/main
Fix typos and tensorboard installation
This commit is contained in:
3 files changed
+17
-5
No files matched your search
@@ -745,7 +745,13 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from torch.utils.tensorboard import SummaryWriter\n",
|
||||
"try:\n",
|
||||
" from torch.utils.tensorboard import SummaryWriter\n",
|
||||
"except:\n",
|
||||
" print(\"[INFO] Couldn't find tensorboard... installing it.\")\n",
|
||||
" !pip install -q tensorboard\n",
|
||||
" from torch.utils.tensorboard import SummaryWriter\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"# Create a writer with all default settings\n",
|
||||
"writer = SummaryWriter()"
|
||||
@@ -2298,7 +2304,7 @@
|
||||
"source": [
|
||||
"Running the cell above we should get an output similar to the following.\n",
|
||||
"\n",
|
||||
"> **Note:** Depending on the random seeds you used/hardware you used there's a chance your numbers aren't exactly the same as what's here. This is okay. It's due to the inheret randomness of deep learning. What matters most is the trend. Where your numbers are heading. If they're off by a large amount, perhaps there's something wrong and best to go back and check the code. But if they're off by a small amount (say a couple of decimal places or so), that's okay. \n",
|
||||
"> **Note:** Depending on the random seeds you used/hardware you used there's a chance your numbers aren't exactly the same as what's here. This is okay. It's due to the inherent randomness of deep learning. What matters most is the trend. Where your numbers are heading. If they're off by a large amount, perhaps there's something wrong and best to go back and check the code. But if they're off by a small amount (say a couple of decimal places or so), that's okay. \n",
|
||||
"\n",
|
||||
"<img src=\"https://raw.githubusercontent.com/mrdbourke/pytorch-deep-learning/main/images/07-tensorboard-lowest-test-loss.png\" alt=\"various modelling experiments visualized on tensorboard with model that has the lowest test loss highlighted\" width=900/>\n",
|
||||
"\n",
|
||||
|
||||
@@ -2391,7 +2391,7 @@
|
||||
"\n",
|
||||
"PyTorch has a bunch of [ready-made non-linear activation functions](https://pytorch.org/docs/stable/nn.html#non-linear-activations-weighted-sum-nonlinearity) that do similiar but different things. \n",
|
||||
"\n",
|
||||
"One of the most common and best performing is [ReLU](https://en.wikipedia.org/wiki/Rectifier_(neural_networks) (rectified linear-unit, [`torch.nn.ReLU()`](https://pytorch.org/docs/stable/generated/torch.nn.ReLU.html)).\n",
|
||||
"One of the most common and best performing is [ReLU](https://en.wikipedia.org/wiki/Rectifier_(neural_networks)) (rectified linear-unit, [`torch.nn.ReLU()`](https://pytorch.org/docs/stable/generated/torch.nn.ReLU.html)).\n",
|
||||
"\n",
|
||||
"Rather than talk about it, let's put it in our neural network between the hidden layers in the forward pass and see what happens."
|
||||
]
|
||||
|
||||
@@ -725,7 +725,13 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from torch.utils.tensorboard import SummaryWriter\n",
|
||||
"try:\n",
|
||||
" from torch.utils.tensorboard import SummaryWriter\n",
|
||||
"except:\n",
|
||||
" print(\"[INFO] Couldn't find tensorboard... installing it.\")\n",
|
||||
" !pip install -q tensorboard\n",
|
||||
" from torch.utils.tensorboard import SummaryWriter\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"# Create a writer with all default settings\n",
|
||||
"writer = SummaryWriter()"
|
||||
@@ -2254,7 +2260,7 @@
|
||||
"source": [
|
||||
"Running the cell above we should get an output similar to the following.\n",
|
||||
"\n",
|
||||
"> **Note:** Depending on the random seeds you used/hardware you used there's a chance your numbers aren't exactly the same as what's here. This is okay. It's due to the inheret randomness of deep learning. What matters most is the trend. Where your numbers are heading. If they're off by a large amount, perhaps there's something wrong and best to go back and check the code. But if they're off by a small amount (say a couple of decimal places or so), that's okay. \n",
|
||||
"> **Note:** Depending on the random seeds you used/hardware you used there's a chance your numbers aren't exactly the same as what's here. This is okay. It's due to the inherent randomness of deep learning. What matters most is the trend. Where your numbers are heading. If they're off by a large amount, perhaps there's something wrong and best to go back and check the code. But if they're off by a small amount (say a couple of decimal places or so), that's okay. \n",
|
||||
"\n",
|
||||
"<img src=\"https://raw.githubusercontent.com/mrdbourke/pytorch-deep-learning/main/images/07-tensorboard-lowest-test-loss.png\" alt=\"various modelling experiments visualized on tensorboard with model that has the lowest test loss highlighted\" width=900/>\n",
|
||||
"\n",
|
||||
|
||||
Reference in new issue
Block a user