Skip to content

Commit

Permalink
DoubleDQN core of ideas
Browse files Browse the repository at this point in the history
  • Loading branch information
marload committed Mar 25, 2020
1 parent b99abcb commit 87e2943
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ $ python DRQN/DRQN_Discrete.py
**Method** OFF-Policy / Temporal-Diffrence / Model-Free<br>
**Action** Discrete only<br>

#### Core of Ideas
```python
# idea01. Resolved the issue of 'overestimate' in Q Learning
on_action = np.argmax(self.model.predict(next_states), axis=1)
next_q_values = self.target_model.predict(next_states)[range(args.batch_size), on_action]
targets[range(args.batch_size), actions] = rewards + (1-done) * next_q_values * args.gamma
```

#### Getting Start
```bash
# Discrete Action Space Double Deep Q-Learning
$ python DoubleQN/DoubleDQN_Discrete.py
Expand Down

0 comments on commit 87e2943

Please sign in to comment.