Skip to content

Commit db26564

Browse files
committed
Fix Task 3 comment with more on PyTorch Tensors
1 parent 7c96347 commit db26564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worked-solutions/01_penguin_classification_solutions.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@
321321
"source": [
322322
"* Can we give these items to a neural network, or do they need to be transformed first?\n",
323323
" + Short answer: no, we can't just pass tuples of numbers or strings to a neural network.\n",
324-
" - 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",
324+
" - 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. See [pytorch tensors documentation](https://pytorch.org/tutorials/beginner/introyt/tensors_deeper_tutorial.html) . \n",
325325
" - The targets are tuples of strings i.e. ('Gentoo', )\n",
326326
" - 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",
327327
" \"A\" — [1, 0, 0]\\\n",

0 commit comments

Comments
 (0)