9e9c4fd3322b6e8f47572fefdb8fd65018fb96f7,rl_coach/exploration_policies/e_greedy.py,EGreedy,get_action,#EGreedy#Any#,85

Before Change



        // step the epsilon schedule and generate a new random value for next time
        if self.phase == RunPhase.TRAIN:
            self.epsilon_schedule.step()
        self.current_random_value = np.random.rand()
        return chosen_action

    def get_control_param(self):

After Change


            if self.current_random_value < epsilon:
                chosen_action = self.action_space.sample()
                probabilities = np.full(len(self.action_space.actions),
                                      1. / (self.action_space.high[0] - self.action_space.low[0] + 1))
            else:
                chosen_action = np.argmax(action_values)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: NervanaSystems/coach
Commit Name: 9e9c4fd3322b6e8f47572fefdb8fd65018fb96f7
Time: 2019-05-27
Author: gal.leibovich@intel.com
File Name: rl_coach/exploration_policies/e_greedy.py
Class Name: EGreedy
Method Name: get_action


Project Name: openai/baselines
Commit Name: b71152eea0470ac2629c33e0fc66a54fe494949f
Time: 2018-02-26
Author: matthiasplappert@me.com
File Name: baselines/common/vec_env/dummy_vec_env.py
Class Name: DummyVecEnv
Method Name: step_wait


Project Name: yhenon/pytorch-retinanet
Commit Name: 630a2c960116050b274bd69c46e58e1b000c949d
Time: 2018-04-26
Author: yannhenon@gmail.com
File Name: train.py
Class Name:
Method Name:


Project Name: kengz/SLM-Lab
Commit Name: f7c257ebab143ec83f1e1ffbe8dc49e3b43a628e
Time: 2017-11-15
Author: kengzwl@gmail.com
File Name: slm_lab/notebook/intro_unity.py
Class Name:
Method Name: