Exemplo n.º 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)