From f2e6117a270561ba5040988cfeae0261646bd75c Mon Sep 17 00:00:00 2001 From: ChrisTrakas <50478180+ChrisTrakas@users.noreply.github.com> Date: Fri, 31 Jul 2020 17:53:46 +0300 Subject: [PATCH] Replace theta.T to theta --- Exercise2/exercise2.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exercise2/exercise2.ipynb b/Exercise2/exercise2.ipynb index b6e728b..1384883 100644 --- a/Exercise2/exercise2.ipynb +++ b/Exercise2/exercise2.ipynb @@ -422,7 +422,7 @@ " grad = np.zeros(theta.shape)\n", "\n", " # ====================== YOUR CODE HERE ======================\n", - " h = sigmoid(X.dot(theta.T))\n", + " h = sigmoid(X.dot(theta))\n", " \n", " J = (1 / m) * np.sum(-y.dot(np.log(h)) - (1 - y).dot(np.log(1 - h)))\n", " grad = (1 / m) * (h - y).dot(X)\n",