mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Update 01_pytorch_workflow.ipynb
added formula in comment
This commit is contained in:
1 parent
e2acbc8046
commit
3a52b6f9f1
1 file changed
+1
@@ -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]"
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user