Skip to content

Commit 6bad8cd

Browse files
committed
Update text in exercises and solutions
Should be equivalent where appropriate
1 parent 2547b74 commit 6bad8cd

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

exercises/01_penguin_classification.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"cell_type": "markdown",
2121
"metadata": {},
2222
"source": [
23-
"### Task 1: Look at the data\n",
23+
"### Task 1 -- Part(a): Look at the data\n",
2424
"In the following code block, we import the ``load_penguins`` function from the ``palmerpenguins`` package.\n",
2525
"\n",
2626
"- Call this function, which returns a single object, and assign it to the variable ``data``.\n",
@@ -357,7 +357,7 @@
357357
"metadata": {},
358358
"outputs": [],
359359
"source": [
360-
"# Complete __len__() and __getitem__() functions\n",
360+
"# Complete the __getitem__() function\n",
361361
"# See Task 4 ``TODOs`` in PenguinDataset class.\n",
362362
"\n",
363363
"# Create train_set\n",
@@ -540,7 +540,7 @@
540540
"# Print the model architecture.\n",
541541
"# print(res_model)\n",
542542
"\n",
543-
"list(res_model.parameters())"
543+
"# list(res_model.parameters())"
544544
]
545545
},
546546
{
@@ -785,7 +785,7 @@
785785
"\n",
786786
" # compute gradients\n",
787787
"\n",
788-
" # nudge parameters in direction of steepest descent c\n",
788+
" # nudge parameters in direction of steepest descent\n",
789789
"\n",
790790
" # append metrics\n",
791791
"\n",

worked-solutions/01_penguin_classification_solutions.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"cell_type": "markdown",
2121
"metadata": {},
2222
"source": [
23-
"### Task 1: look at the data\n",
23+
"### Task 1 -- Part (a): Look at the data\n",
2424
"In the following code block, we import the ``load_penguins`` function from the ``palmerpenguins`` package.\n",
2525
"\n",
2626
"- Call this function, which returns a single object, and assign it to the variable ``data``.\n",
@@ -346,7 +346,7 @@
346346
"cell_type": "markdown",
347347
"metadata": {},
348348
"source": [
349-
"### Task 2: creating a ``torch.utils.data.Dataset``\n",
349+
"### Task 2: Creating a ``torch.utils.data.Dataset``\n",
350350
"\n",
351351
"The penguin data reading and processing can be encapsulated in a PyTorch dataset class.\n",
352352
"\n",
@@ -493,7 +493,7 @@
493493
"cell_type": "markdown",
494494
"metadata": {},
495495
"source": [
496-
"### Task 3: obtaining training and validation datasets\n",
496+
"### Task 3: Obtaining training and validation datasets\n",
497497
"\n",
498498
"- Instantiate the penguin dataloader.\n",
499499
" - Make sure you supply the correct column titles for the features and the targets.\n",
@@ -573,7 +573,7 @@
573573
"Modify the `PenguinDataset` class above so that the tuples of numbers are converted to PyTorch `torch.Tensor` s and the string targets are converted to indices.\n",
574574
"\n",
575575
"- Begin by importing relevant PyTorch functions.\n",
576-
"- Complete `__len__()` and `__getitem__()` function above.\n",
576+
"- Complete the `__getitem__()` function above.\n",
577577
"\n",
578578
"Then create a training and validation set.\n",
579579
"\n",

0 commit comments

Comments
 (0)