Error in #UNQ_C6 of C1_W3_Logistic_Regression

AssertionError Traceback (most recent call last)
in
11
12 # UNIT TESTS
—> 13 compute_gradient_reg_test(compute_gradient_reg)

~/work/public_tests.py in compute_gradient_reg_test(target)
123
124 assert np.isclose(dj_db, expected1[0]), f"Wrong dj_db. Expected: {expected1[0]} got: {dj_db}"
→ 125 assert np.allclose(dj_dw, expected1[1]), f"Wrong dj_dw. Expected: {expected1[1]} got: {dj_dw}"
126
127

AssertionError: Wrong dj_dw. Expected: [ 0.19530838 -0.00632206 0.19687367 0.15741161 0.02791437] got: [0.17210345 0.00241732 0.20441898 0.17273973 0.01555141]

Hi @Aparajita_Rai ,

There is some sort of calculation error. Please revisit the hints to check the logic of your code.

I am having a similar error. I cannot figure out where the mistake is. I need additional help. I have read all the hints and I have completed all the previous functions before this as all tests have passed so far.

Hi @Jadev8r

This thread is a year old, similar error is not necessary the same error that you have. Please create a new post with the error output to help diagnosis.

This post is now closed. Please open a new post for up-to-date discussion.