7bfbea752c9a4f38dbf7c2660d44f8a064235dfe,agents/ddpg.py,DDPG,select_action,#DDPG#Any#,227

Before Change


        return cuda.to_cpu(action.data[0])

    def select_action(self, state):
        return self.explorer.select_action(
            self.t, lambda: self.select_greedy_action(state))

    def save_model(self, model_filename):
        Save a network model to a file.

After Change


            greedy_evaluated[0] = True
            return self.select_greedy_action(state)

        a = self.explorer.select_action(self.t, greedy_func)

        // Even when greedy actions are not selected, policy and q_function"s
        // states should be updated
        // FIXME: This would not work for some explorers that add noises to
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: chainer/chainerrl
Commit Name: 7bfbea752c9a4f38dbf7c2660d44f8a064235dfe
Time: 2016-09-20
Author: muupan@gmail.com
File Name: agents/ddpg.py
Class Name: DDPG
Method Name: select_action


Project Name: chainer/chainerrl
Commit Name: a60213413144cb450dedf07f1f41d6d33a4aab29
Time: 2016-06-20
Author: muupan@gmail.com
File Name: agents/dqn.py
Class Name: DQN
Method Name: select_action


Project Name: chainer/chainerrl
Commit Name: b0729b5f7d3e208deb3d843567f6ecd34c421c69
Time: 2016-08-26
Author: muupan@gmail.com
File Name: agents/ddpg.py
Class Name: DDPG
Method Name: select_action