ba96e585d2ac8e1f940080d5b669976bdec8723b,agents/agent.py,Agent,update_log,#Agent#,153

Before Change


        if phase == RunPhase.TRAIN:
            logger.create_signal_value("Training Reward", self.total_reward_in_current_episode)
        elif phase == RunPhase.TEST:
            logger.create_signal_value("Evaluation Reward", self.total_reward_in_current_episode)
        logger.update_wall_clock_time(self.current_episode)

        for signal in self.signals:
            logger.create_signal_value("{}/Mean".format(signal.name), signal.get_mean())

After Change


        logger.create_signal_value("Epsilon", self.exploration_policy.get_control_param())
        logger.create_signal_value("Training Reward", self.total_reward_in_current_episode
                                   if phase == RunPhase.TRAIN else np.nan)
        logger.create_signal_value("Evaluation Reward", self.total_reward_in_current_episode
                                   if phase == RunPhase.TEST else np.nan)
        logger.create_signal_value("Update Target Network", 0, overwrite=False)
        logger.update_wall_clock_time(self.current_episode)

        for signal in self.signals:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: NervanaSystems/coach
Commit Name: ba96e585d2ac8e1f940080d5b669976bdec8723b
Time: 2018-02-12
Author: itai.caspi@intel.com
File Name: agents/agent.py
Class Name: Agent
Method Name: update_log


Project Name: NervanaSystems/coach
Commit Name: a0f25034c3d0e2c733fd7c53fab0e40cfb0977b8
Time: 2018-11-16
Author: thom.e.lane@gmail.com
File Name: rl_coach/agents/agent.py
Class Name: Agent
Method Name: reset_evaluation_state