Update 01_pytorch_workflow.ipynb

formatted
This commit is contained in:
Nipu Chakraborty authored and GitHub committed 2023-05-18 10:58:37 +06:00
1 parent 65d92c1816
commit 16758d69af
1 file changed
+2 -2
+2 -2
View File
@@ -221,7 +221,7 @@
"step = 0.02\n",
"X = torch.arange(start, end, step).unsqueeze(dim=1)\n",
"#y = MX + b used formula",
"ref: https://www.wallstreetmojo.com/regression-analysis-formula/",
"ref: https://www.wallstreetmojo.com/regression-analysis-formula/ \n",
"y = weight * X + bias\n",
"\n",
"X[:10], y[:10]"
@@ -1661,7 +1661,7 @@
"# 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 = MX + b used formula",
"# ref https://www.wallstreetmojo.com/regression-analysis-formula/",
"# ref https://www.wallstreetmojo.com/regression-analysis-formula/ \n",
"y = weight * X + bias \n",
"X[:10], y[:10]"
]