1a693073cd01fffa7cb3f018b7221459703119f9,ch09/01_cartpole_dqn.py,,,#,48
Before Change
optimizer.step()
// clear batch
batch_states.clear()
batch_actions.clear()
batch_targets.clear()
new_rewards = exp_source.pop_total_rewards()
After Change
// sample batch
batch = replay_buffer.sample(BATCH_SIZE)
batch_states = [exp.state for exp in batch]
batch_actions = [exp.action for exp in batch]
batch_targets = [calc_target(net, exp.reward, exp.last_state)
for exp in batch]
// train
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: 1a693073cd01fffa7cb3f018b7221459703119f9
Time: 2017-11-30
Author: max.lapan@gmail.com
File Name: ch09/01_cartpole_dqn.py
Class Name:
Method Name:
Project Name: HazyResearch/fonduer
Commit Name: 50e579e5735f651d490162e3628d3f9d535825ea
Time: 2018-12-22
Author: lwhsiao@stanford.edu
File Name: src/fonduer/utils/udf.py
Class Name: UDFRunner
Method Name: apply
Project Name: biolab/orange3
Commit Name: faaa9683764e14d67a483b6948a96577a045f4f2
Time: 2016-09-23
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/visualize/owboxplot.py
Class Name: OWBoxPlot
Method Name: set_data