Skip to content

Commit da3e1ae

Browse files
committed
Improve task 2 text
1 parent c50409c commit da3e1ae

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

exercises/01_penguin_classification.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"\n",
5858
"The penguin data reading and processing can be encapsulated in a PyTorch dataset class.\n",
5959
"\n",
60-
"- Why is this helpful?\n",
60+
"- Why is a class representation helpful?\n",
6161
"\n",
6262
"All PyTorch dataset objects are subclasses of the ``torch.utils.data.Dataset`` class. To make a custom dataset, create a class which inherits from the ``Dataset`` class, implement some methods (the Python magic (or dunder) methods ``__len__`` and ``__getitem__``) and supply some data.\n",
6363
"\n",

worked-solutions/01_penguin_classification_solutions.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,14 @@
110110
"\n",
111111
"The penguin data reading and processing can be encapsulated in a PyTorch dataset class.\n",
112112
"\n",
113-
"- Why is this class representation helpful?\n",
113+
"- Why is a class representation helpful?\n",
114114
" - Modularity - Separation of concerns makes the cde easier to understand, maintain and test.\n",
115115
" - Maintainability - Changes are localised, therefore we only need to change a single file to update. \n",
116116
" - Abstraction - Users do not need to know how the data is read or processed, they only need to know how to interact with the class. \n",
117117
"\n",
118-
"\n",
119118
"All PyTorch dataset objects are subclasses of the ``torch.utils.data.Dataset`` class. To make a custom dataset, create a class which inherits from the ``Dataset`` class, implement some methods (the Python magic (or dunder) methods ``__len__`` and ``__getitem__``) and supply some data.\n",
120119
"\n",
121-
"Spoiler alert: we've done this for you already in ``src/ml_workshop/_penguins.py``.\n",
120+
"Spoiler alert: we've done this for you already below (see ``src/ml_workshop/_penguins.py`` for a more sophisticated implementation)\n",
122121
"\n",
123122
"- Open the file ``src/ml_workshop/_penguins.py``.\n",
124123
"- Let's examine, and discuss, each of the methods together.\n",

0 commit comments

Comments
 (0)