Update 01_pytorch_workflow.ipynb

added formula in comment
This commit is contained in:
Nipu Chakraborty authored and GitHub committed 2023-05-18 10:40:42 +06:00
1 parent e2acbc8046
commit 3a52b6f9f1
1 file changed
+1
+1
View File
@@ -1658,6 +1658,7 @@
"\n",
"# Create X and y (features and labels)\n",
"X = torch.arange(start, end, step).unsqueeze(dim=1) # without unsqueeze, errors will happen later on (shapes within linear layers)\n",
"# Y_i=f(X_i, \beta)+e_i",
"y = weight * X + bias \n",
"X[:10], y[:10]"
]