C2_W3_assigment exercise 4

Screenshot 2023-05-20 063155


why it give error

I’m not a mentor for this course, but the following tips might be helpful:

  1. Is np.matmul() the correct function, or do you mean to use np.dot()?
  2. Try sigmoid() using 1/ division instead of a negative exponent.

yeah np.matmul is correct function because we multipltly matrix.


same error

  • Something is causing your sigmoid() function to break.

  • Your code calls it with the results of np.matmul().

These could be related.

Have you considered using np.exp() instead of math.exp()?

I think you should use numpy exp since it should return an array.

Hey @Najumuddeen_Kubra,
Please note that this is a known issue with this assignment, as you can read in this thread. The team is working to rectify this issue. Apologies for the inconvenience.

Cheers,
Elemento

Hey @Najumuddeen_Kubra,
The test-cases have been updated. If your implementation is correct, it should pass all the test-cases know. Please let us know in case of any further issues.

Cheers,
Elemento

Okay, Thank you