Skip to content

Commit 51d17eb

Browse files
committed
Improve task 3 text and remove x_tfms and y_tfms comments
1 parent da3e1ae commit 51d17eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

exercises/01_penguin_classification.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@
7474
"- Review and discuss the class arguments.\n",
7575
" - ``input_keys``— ...\n",
7676
" - ``target_keys``— ...\n",
77-
" - ``train``— ...\n",
78-
" - ``x_tfms``— ...\n",
79-
" - ``y_tfms``— ..."
77+
" - ``train``— ..."
8078
]
8179
},
8280
{
@@ -230,7 +228,7 @@
230228
"source": [
231229
"- Can we give these items to a neural network, or do they need to be transformed first?\n",
232230
" - Short answer: no, we can't just pass tuples of numbers or strings to a neural network.\n",
233-
" - We must represent these data as ``torch.Tensor``s. This is the fundamental data abstraction used by PyTorch. See [pytorch tensors documentation](https://pytorch.org/tutorials/beginner/introyt/tensors_deeper_tutorial.html).\n",
231+
" - We must represent these data as ``torch.Tensor``s. This is the fundamental data abstraction used by PyTorch; they are the PyTorch equivalent to Numpy arrays, while also providing support for GPU acceleration. See [pytorch tensors documentation](https://pytorch.org/tutorials/beginner/introyt/tensors_deeper_tutorial.html).\n",
234232
" - The targets are tuples of strings i.e. ('Gentoo', )\n",
235233
" - One idea is to represent as ordinal values i.e. [1] or [2] or [3]. But this implies that the class encoded by value 1 is closer to 2 than 1 is to 3. This is not desirable for categorical data. One-hot encoding avoids this by representing each species independently.\\\n",
236234
" \"A\" — [1, 0, 0]\\\n",

0 commit comments

Comments
 (0)