Skip to content

Commit

Permalink
Merge pull request #3 from k0nakona/fixes
Browse files Browse the repository at this point in the history
fix-of-shape
  • Loading branch information
andriygav authored Oct 3, 2024
2 parents 44f2979 + cf9a570 commit f150980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sem8/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@
"X_train_pt = torch.from_numpy(X_train).float()\n",
"X_test_pt = torch.from_numpy(X_test).float()\n",
"\n",
"y_train_pt = torch.from_numpy(y_train).float()\n",
"y_test_pt = torch.from_numpy(y_test).float()\n",
"y_train_pt = torch.from_numpy(y_train).float().view(-1,1)\n",
"y_test_pt = torch.from_numpy(y_test).float().view(-1,1)\n",
"\n",
"train_dataset = torch.utils.data.TensorDataset(X_train_pt, y_train_pt)\n",
"test_dataset = torch.utils.data.TensorDataset(X_test_pt, y_test_pt)"
Expand Down

0 comments on commit f150980

Please sign in to comment.