In this section, I’m trying to compute the gradient of the cost function, w.r.t. ‘‘w’’ and ‘‘b’’. But the results of my computation don’t match with the expected values.
I appreciate any comment on this issue.
Thanks
In this section, I’m trying to compute the gradient of the cost function, w.r.t. ‘‘w’’ and ‘‘b’’. But the results of my computation don’t match with the expected values.
I appreciate any comment on this issue.
Thanks
I think posting a code is not recommended in this community. Please remove it.
dj_db is a scalar, but dj_dw is an array with the same shape as w. (See an initialization at the beginning of this assignment.)
But, you did not set the position in dj_dw to update the value in a for-loop.
Hope this helps.
Thanks for your response. I will remove the code.