Hi @Venkata_Giri ,
It looks like you have made a lot of changes to the template code. May I suggest you get a fresh copy of the assignment and read the implementation instruction and try again. Your code should record and print cost at every 100 examples, but you have changed that to 5. The code for updating previous cost is not needed, as the costs.append() is appending the calculated cost to ‘costs’.