1226a2eee68336240a35fce9678320ca9430584f,snake/solver/dqn.py,DQNSolver,__choose_action,#DQNSolver#,185
Before Change
)
// Select an action with max value
max_val = None
for i, val in enumerate(q_eval_all[0]):
direc = self.__actions[i]
if direc != oppo_direc and (max_val is None or val > max_val):
max_val = val
action_idx = i
return action_idx
def __step(self, action_idx):
direc = self.__actions[action_idx]
After Change
self.__state_eval: state
}
)
action_idx = np.argmax(q_eval_all, axis=1)[0]
return action_idx
def __step(self, action_idx):
direc = self.__snake_actions[action_idx]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: chuyangliu/snake
Commit Name: 1226a2eee68336240a35fce9678320ca9430584f
Time: 2018-01-06
Author: chuyang.s.liu@gmail.com
File Name: snake/solver/dqn.py
Class Name: DQNSolver
Method Name: __choose_action
Project Name: scikit-learn-contrib/DESlib
Commit Name: bba1901f835525551dde9ec1537d041abc88d293
Time: 2021-04-08
Author: rafaelmenelau@gmail.com
File Name: deslib/static/oracle.py
Class Name: Oracle
Method Name: predict
Project Name: AlexEMG/DeepLabCut
Commit Name: ef59c0f5b64e5a3e76790855795a6393c5858963
Time: 2020-05-27
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/generate_training_dataset/multiple_individuals_labeling_toolbox.py
Class Name: MainFrame
Method Name: browseDir