I had copied the whole code but it is giving me error:
NameError Traceback (most recent call last)
in
----> 1 theta,error_list,theta_list = gradientDescent(X,y)
NameError: name ‘gradientDescent’ is not defined
I had copied the whole code but it is giving me error:
NameError Traceback (most recent call last)
in
----> 1 theta,error_list,theta_list = gradientDescent(X,y)
NameError: name ‘gradientDescent’ is not defined
The error is arising because the function “gradientDescent” is not defined. Check for typos in the function definition/name and make sure the function is present in the namespace where it is used.
Also, it would be much easier for me to help you if could share the complete code. Just paste the code at cb.lk/ide, save it, and share the generated URL.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.