{moderator edit: images of code removed}
Want to ask why dj_db is equal to (f_wb - y[i]) * x[i]) not (f_wb - y[i]) …
{moderator edit: images of code removed}
Want to ask why dj_db is equal to (f_wb - y[i]) * x[i]) not (f_wb - y[i]) …
Since the bias is a constant, its partial derivative does not vary with x(i).
Please do not post your code on the forum, that’s not allowed by the Code of Conduct.
I have edited your post to remove the code.