here in the video how is y same as error
Error and y in the for loop
Hey @sankalparora5, here we have assumed that y itself represents the error curve, and that is the reason we treated y = error.
Hope this cleared your doubt.
Plz mark the doubt as resolved in my doubts section. 
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.