Error Overflow Encountered in Square

when i am running the code and fetching the value of Theta and error_list It is showing Error Overflow Encountered in Square.
And when i am printing the value of theta it is showing a list which contains nan.

Make sure while calculating gradients you are dividing all of them by m(=X.shape[0]). And share the link of ipynb file after saving it on google drive if error still persists…

Happy Learning :blush:

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.