Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cc831bf

Browse files
MorvanZhouMorvan Zhou
authored and
Morvan Zhou
committed
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)

AltStyle によって変換されたページ (->オリジナル) /