Help me debug the error in assignment-2

I am attaching the link of ipynb notebook of my assignment with this thread . I am facing an error which i can’t figure out why it is happening .

Assignment Link

I can’t figure out what is it taking as a sequence .
Regards Dinesh

My algorithm has started running though i can sense that my maths is not correct , will redo everything but now i want help with convergence condition . I am a bit confused about it

there is no set way to know when ur model will find optimum minima.thats why we have to tune hyperparameters
such as lerning rate and no. of iterations to get our model to reach optimum minima.
only test of covergence is when u plot error vs no of iterations ur error must decrease and at some point become constant.
if ur maths is right then just adjust learning rate and no. of iterations till u get optimum solution.
in ur code try increasing no of iterations.

1 Like

also please try to import standard libraries in python such as pandas as pd and matplotlib as plt.As these are conventional and will help others understand ur code better and also all the codes u will see follow these conventions.

1 Like