Should be no theta in gradient formula with MSE cost function

Should be no theta in gradient formula with MSE cost function

yazan Oleksandr Tarasov -
Yanıt sayısı: 1

Hi guys,

in the second notebook in the second code cell, in the function 'compute_cost' there is a comment on how to calculate the gradient, but instead of a 'learning_rate' param the 'theta' param is used there:

# compute gradient of cost function: Δθ = (2*theta/n) * X.T * errors

Could you please check and edit it?

Oleksandr Tarasov yanıt olarak

Re: Should be no theta in gradient formula with MSE cost function

yazan Saad Obaid Ul-Islam -
Dear student,

In the uploaded notebook, it says 'eta' and not 'theta'. eta is the learning rate (refer to cell one and lecture slide 11 lecture 3.)