FileNotFoundError Traceback (most recent call last)
in ()
284 # play with human
285 p1 = Player("computer", exp_rate=0)
--> 286 p1.loadPolicy("policy_p1")
287
288 p2 = HumanPlayer("human")
in loadPolicy(self, file)
244
245 def loadPolicy(self, file):
--> 246 fr = open(file, 'rb')
247 self.states_value = pickle.load(fr)
248 fr.close()
FileNotFoundError: [Errno 2] No such file or directory: 'policy_p1'
FileNotFoundError Traceback (most recent call last)
in ()
284 # play with human
285 p1 = Player("computer", exp_rate=0)
--> 286 p1.loadPolicy("policy_p1")
287
288 p2 = HumanPlayer("human")
in loadPolicy(self, file)
244
245 def loadPolicy(self, file):
--> 246 fr = open(file, 'rb')
247 self.states_value = pickle.load(fr)
248 fr.close()
FileNotFoundError: [Errno 2] No such file or directory: 'policy_p1'