From e6199ad2a1f150038b8ba66d89a5425cf83b1a18 Mon Sep 17 00:00:00 2001 From: DanilSavine Date: Tue, 15 Sep 2020 21:49:08 +0200 Subject: [PATCH] Update exercise8.ipynb Small error within the documentation of the cofiCostFunc() function: the shape of "params" variable should be num_movies * num_features + num_users * num_features --- Exercise8/exercise8.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Exercise8/exercise8.ipynb b/Exercise8/exercise8.ipynb index d8aeda3d..dd3c91cb 100755 --- a/Exercise8/exercise8.ipynb +++ b/Exercise8/exercise8.ipynb @@ -544,7 +544,7 @@ " ----------\n", " params : array_like\n", " The parameters which will be optimized. This is a one\n", - " dimensional vector of shape (num_movies x num_users, 1). It is the \n", + " dimensional vector of shape (num_movies * num_features + num_users * num_features, 1). It is the \n", " concatenation of the feature vectors X and parameters Theta.\n", " \n", " Y : array_like\n", @@ -573,7 +573,7 @@ " \n", " grad : array_like\n", " The gradient vector of the cost function at the given params.\n", - " grad has a shape (num_movies x num_users, 1)\n", + " grad has a shape (num_movies * num_features + num_users * num_features, 1)\n", " \n", " Instructions\n", " ------------\n",