Update docs/07_pytorch_experiment_tracking.ipynb

Fix typo and tensorboard installation
This commit is contained in:
Carter Tran committed 2024-08-22 15:33:24 -07:00
1 parent 8adeffb3b6
commit 554233b4e9
1 file changed
+8 -2
+8 -2
View File
@@ -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",