Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix typo
  • Loading branch information
fab-p authored Mar 22, 2026
commit dfe8443f865014a8e12d06d7e04a9f36175f11d6
2 changes: 1 addition & 1 deletion 02_pytorch_classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@
"\n",
" # 1. Forward pass (model outputs raw logits)\n",
" y_logits = model_0(X_train).squeeze() # squeeze to remove extra `1` dimensions, this won't work unless model and data are on same device \n",
" y_pred = torch.round(torch.sigmoid(y_logits)) # turn logits -> pred probs -> pred labls\n",
" y_pred = torch.round(torch.sigmoid(y_logits)) # turn logits -> pred probs -> pred labels\n",
" \n",
" # 2. Calculate loss/accuracy\n",
" # loss = loss_fn(torch.sigmoid(y_logits), # Using nn.BCELoss you need torch.sigmoid()\n",
Expand Down