diff --git a/Exercise1/exercise1.ipynb b/Exercise1/exercise1.ipynb index 38a9faed..6f921a48 100755 --- a/Exercise1/exercise1.ipynb +++ b/Exercise1/exercise1.ipynb @@ -371,7 +371,7 @@ "\n", "As you perform gradient descent to learn minimize the cost function $J(\\theta)$, it is helpful to monitor the convergence by computing the cost. In this section, you will implement a function to calculate $J(\\theta)$ so you can check the convergence of your gradient descent implementation. \n", "\n", - "Your next task is to complete the code for the function `computeCost` which computes $J(\\theta)$. As you are doing this, remember that the variables $X$ and $y$ are not scalar values. $X$ is a matrix whose rows represent the examples from the training set and $y$ is a vector whose each elemennt represent the value at a given row of $X$.\n", + "Your next task is to complete the code for the function `computeCost` which computes $J(\\theta)$. As you are doing this, remember that the variables $X$ and $y$ are not scalar values. $X$ is a matrix whose rows represent the examples from the training set and $y$ is a vector whose each element represent the value at a given row of $X$.\n", "" ] }, diff --git a/Exercise5/exercise5.ipynb b/Exercise5/exercise5.ipynb index 5182c278..5da0c5f5 100755 --- a/Exercise5/exercise5.ipynb +++ b/Exercise5/exercise5.ipynb @@ -396,7 +396,7 @@ " A vector of shape m. error_train[i] contains the training error for\n", " i examples.\n", " error_val : array_like\n", - " A vecotr of shape m. error_val[i] contains the validation error for\n", + " A vector of shape m. error_val[i] contains the validation error for\n", " i training examples.\n", " \n", " Instructions\n", diff --git a/environment.yml b/environment.yml index 07a7a45d..624707a3 100644 --- a/environment.yml +++ b/environment.yml @@ -5,5 +5,6 @@ dependencies: - jupyter=1.0.0 - matplotlib=2.1.2 - numpy=1.13.3 + - requests=2.26.0 - python=3.6.4 - scipy=1.0.0 diff --git a/submission.py b/submission.py index 135b19f5..2236f4f2 100755 --- a/submission.py +++ b/submission.py @@ -45,7 +45,7 @@ def grade(self): 'feedback'] part_evaluation = response['linked']['onDemandProgrammingScriptEvaluations.v1'][0]['parts'][str(part)] score = '%d / %3d' % (part_evaluation['score'], part_evaluation['maxScore']) - print('%43s | %9s | %-s' % (self.part_names[int(index) - 1], score, part_feedback)) + print('%43s | %9s | %-s' % (self.part_names[int(index)], score, part_feedback)) evaluation = response['linked']['onDemandProgrammingScriptEvaluations.v1'][0] total_score = '%d / %d' % (evaluation['score'], evaluation['maxScore']) print(' --------------------------------')