예제 #1
0
 def _log_result(self, result):
     if self.config["callbacks"].get("on_train_result"):
         self.config["callbacks"]["on_train_result"]({
             "agent": self,
             "result": result,
         })
     # log after the callback is invoked, so that the user has a chance
     # to mutate the result
     Trainable._log_result(self, result)
예제 #2
0
파일: trainer.py 프로젝트: zqxyz73/ray
 def _log_result(self, result):
     if self.config["callbacks"].get("on_train_result"):
         self.config["callbacks"]["on_train_result"]({
             "trainer": self,
             "result": result,
         })
     # log after the callback is invoked, so that the user has a chance
     # to mutate the result
     Trainable._log_result(self, result)
예제 #3
0
파일: trainer.py 프로젝트: zommiommy/ray
 def _log_result(self, result):
     self.callbacks.on_train_result(trainer=self, result=result)
     # log after the callback is invoked, so that the user has a chance
     # to mutate the result
     Trainable._log_result(self, result)