Skip to content

Commit

Permalink
use spam / not spam labels
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed May 11, 2024
1 parent 45f6e72 commit 4b4e1e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ch06/01_main-chapter-code/ch06.ipynb
Expand Up @@ -2184,7 +2184,7 @@
" predicted_label = torch.argmax(logits, dim=-1).item()\n",
"\n",
" # Return the classified result\n",
" return \"Positive\" if predicted_label == 1 else \"Negative\""
" return \"spam\" if predicted_label == 1 else \"not spam\""
]
},
{
Expand All @@ -2211,7 +2211,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Positive\n"
"spam\n"
]
}
],
Expand Down Expand Up @@ -2242,7 +2242,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Negative\n"
"not spam\n"
]
}
],
Expand Down Expand Up @@ -2347,7 +2347,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.12"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 4b4e1e1

Please sign in to comment.