Hello,
I am having issues with Graded Function: Compute gradient code. I can’t figure out where the problem is and I’ll be grateful if someone could help me find solution.
The figures I get are not what is expected. Image Uploaded.
Hey @Daniel_Ferrada,
Can you please DM your code for the compute_gradient
function to me? For DM, click on my name and select “Message”.
Cheers,
Elemento
Hey @Daniel_Ferrada,
Check out the below line of code in your implementation of the compute_gradient
function;
dj_dw[j] = dj_dw_ij
It is supposed to be;
dj_dw[j] += dj_dw_ij
I am assuming this is a typo on your side, and doesn’t require any explanation, but if it does, do let me know.
Cheers,
Elemento
Ah!! of course. It adds another value to dj_dw[j].
Thank you!
1 Like
Thanks very much for your help. I managed to finish Course 1 thanks to your help.
I’m very grateful.
Daniel
Hello @M_A_Naidu, we are not allowed to share assignment code here, so I have removed it. I am closing this topic.