C1_W1_Lab05_Gradient_Descent_Soln - Did we set a value for alpha?


Just going through this week’s lab - and it doesn’t seem like we’ve set a value for alpha in the python code.

I am looking at the code for gradient descent specifically. I am intrigued as I dont understand how the code is working if there’s no specified value for alpha, or am I missing something?

Thanks for your help!

Hello @sumbo.e,

alpha is used in the function gradient_descent, and here is a screenshot of one instance we defined an alpha, right below the function.

tmp_alpha is used as the 5th input argument to the function.