332d8ed93fd24838cd0e2ac1e2bad74f72e04784,ch09/02_cartpole_reinforce.py,,,#,42
Before Change
batch_actions.extend(cur_actions)
batch_qvals.extend(calc_qvals(cur_rewards))
cur_states.clear()
cur_actions.clear()
cur_rewards.clear()
batch_episodes += 1
// handle new rewards
After Change
batch_episodes = 0
batch_states, batch_actions, batch_qvals = [], [], []
cur_rewards = []
for step_idx, exp in enumerate(exp_source):
batch_states.append(exp.state)
batch_actions.append(int(exp.action))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 332d8ed93fd24838cd0e2ac1e2bad74f72e04784
Time: 2017-12-03
Author: max.lapan@gmail.com
File Name: ch09/02_cartpole_reinforce.py
Class Name:
Method Name:
Project Name: matplotlib/matplotlib
Commit Name: 5be3c6df52e412b6b0c937c997ab770a3a9cd27c
Time: 2018-03-28
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/tests/test_backend_pgf.py
Class Name:
Method Name: test_rcupdate
Project Name: IDSIA/sacred
Commit Name: 18f233c6f2d8b7866d6d93fcaeb8256045b54913
Time: 2016-01-13
Author: qwlouse@gmail.com
File Name: setup.py
Class Name: PyTest
Method Name: finalize_options
Project Name: IDSIA/sacred
Commit Name: 8a213804d9bb74bca3ce7ce0052a71f86f7b41fc
Time: 2016-01-17
Author: qwlouse@gmail.com
File Name: setup.py
Class Name: PyTest
Method Name: finalize_options