Skip to content

Commit

Permalink
change: docstrings in module00
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Mahla committed Jun 14, 2024
1 parent 524cb91 commit 7be3e39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions module05/en.subject.tex
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ \section*{Instructions}
x: has to be an numpy.ndarray, a one-dimensional vector of size m.
theta: has to be an numpy.ndarray, a one-dimensional vector of size 2.
Returns:
y_hat as a numpy.ndarray, a vector of dimension m * 1.
y_hat as a numpy.ndarray, a one-dimensional vector of size m.
None if x or theta are empty numpy.ndarray.
None if x or theta dimensions are not appropriate.
Raises:
Expand Down Expand Up @@ -814,7 +814,7 @@ \section*{Instructions}
x: has to be an numpy.array, a one-dimensional vector of size m.
theta: has to be an numpy.array, a two-dimensional vector of shape 2 * 1.
Returns:
y_hat as a numpy.array, a vector of dimension m * 1.
y_hat as a numpy.array, a two-dimensional vector of shape m * 1.
None if x and/or theta are not numpy.array.
None if x or theta are empty numpy.array.
None if x or theta dimensions are not appropriate.
Expand Down Expand Up @@ -1015,7 +1015,7 @@ \section*{Instructions}
y_hat: has to be an numpy.array, a two-dimensional vector of shape m * 1.
Returns:
J_elem: numpy.array, a vector of dimension (number of the training examples,1).
None if there is a dimension matching problem between X, Y or theta.
None if there is a dimension matching problem.
None if any argument is not of the expected type.
Raises:
This function should not raise any Exception.
Expand All @@ -1031,7 +1031,7 @@ \section*{Instructions}
y_hat: has to be an numpy.array, a two-dimensional vector of shape m * 1.
Returns:
J_value : has to be a float.
None if there is a dimension matching problem between X, Y or theta.
None if there is a dimension matching problem.
None if any argument is not of the expected type.
Raises:
This function should not raise any Exception.
Expand Down

0 comments on commit 7be3e39

Please sign in to comment.