Submission Problem

I am getting a acurracy of 100 in less than 15 epochs but my assignment is not getting submittes because of
the issue hist is not defined even though I defined.
Please, provide

me the solution :

You need to publish the error here so people can have more insight into the issue.