Skip to content

Commit cc831bf

Browse files
MorvanZhouMorvan Zhou
authored andcommitted
update
1 parent b2922fd commit cc831bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tutorial-contents/405_DQN_Reinforcement_learning.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def learn(self):
7474
# target parameter update
7575
if self.learn_step_counter % TARGET_REPLACE_ITER == 0:
7676
self.target_net.load_state_dict(self.eval_net.state_dict())
77+
self.learn_step_counter += 1
7778

7879
# sample batch transitions
7980
sample_index = np.random.choice(MEMORY_CAPACITY, BATCH_SIZE)

0 commit comments

Comments
 (0)