I get the wrong dj_db and dj_dw in exercise 3 of the practise lab of week 3

this is my code:

### START CODE HERE ### 
# {mentor edit: code removed
### END CODE HERE ###
return dj_db, dj_dw

my returns are: dj_db at initial w and b (zeros):-0.00505
dj_dw at initial w and b (zeros):[-0.37761825965468476, -0.45212555512042046]

the returns should be: dj_db at initial w and b (zeros) -0.1 dj_dw at initial w and b (zeros): [-12.00921658929115, -11.262842205513591]

please help!

Please review the Code of Conduct. Sharing your code on the forum is not allowed.
I have edited your post.

Just post screen capture images of any test results, error messages, or asserts.

I’ll reply as to your issue shortly.

Oh I am sorry! please excuse my mistake…

thank you for the fast reply

Comments:

The indentation in your code may be incorrect. It is very difficult to say for sure, because you did not use the “preformatted text” tag.

Correct indentation is critical, because that is how python defines blocks of code.

Note again, do not post your code on the forum.

I also see that you deleted all of the doctext and built-in comments. This is a bad idea in general. Don’t make changes outside of the marked areas.

When computing f_wb, you must include the bias value ‘b’ before you compute the sigmoid().

Division by ‘m’ should not be inside any for-loops.