Skip to content

Commit

Permalink
add 'task 4' to exercises
Browse files Browse the repository at this point in the history
  • Loading branch information
ma595 committed Jul 4, 2024
1 parent a0b7f55 commit e4a9457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worked-solutions/01_penguin_classification_solutions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@
" # this gives a 'species' i.e. one of ('Gentoo',), ('Chinstrap',), or ('Adelie',)\n",
" tgts = tuple(self.split.iloc[idx][self.target_keys])\n",
"\n",
" # Exercise #1: convert the feats (Series) to PyTorch Tensors\n",
" # Task 4 - Exercise #1: convert the feats (Series) to PyTorch Tensors\n",
" feats = tensor(feats, dtype=float32)\n",
"\n",
" # Exercise #2: convert target to a 'one-hot' vector.\n",
" # Task 4 - Exercise #2: convert target to a 'one-hot' vector.\n",
" target_names = sorted(self.full_df.species.unique())\n",
" tgts = eye(len(target_names))[target_names.index(tgts[0])]\n",
"\n",
Expand Down

0 comments on commit e4a9457

Please sign in to comment.