From 91b51129d3e6196d4549f144bb942f3d7683cbab Mon Sep 17 00:00:00 2001 From: =Taeyoung Kim Date: Fri, 9 Oct 2020 18:00:21 +0900 Subject: [PATCH] fixed Lec03 Line 8 typing error --- lab-03_minimizing_cost.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lab-03_minimizing_cost.ipynb b/lab-03_minimizing_cost.ipynb index d8fb794..fe77d43 100644 --- a/lab-03_minimizing_cost.ipynb +++ b/lab-03_minimizing_cost.ipynb @@ -266,7 +266,7 @@ } ], "source": [ - "gradient = torch.sum((W * x_train - y_train) * x_train)\n", + "gradient = torch.mean((W * x_train - y_train) * x_train)\n", "print(gradient)" ] }, @@ -428,7 +428,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.5" + "version": "3.7.9" } }, "nbformat": 4,