freeCodeCamp/curriculum/challenges/english/11-machine-learning-with-python/tensorflow/reinforcement-learning-with-q-learning-example.english.md
Oliver Eyton-Williams bd68b70f3d
Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

694 B

id, title, challengeType, videoId
id title challengeType videoId
5e8f2f13c4cdbe86b5c72da5 Reinforcement Learning With Q-Learning: Example 11 RBBSNta234s

Description

Tests

question:
  text: |
    Fill in the blanks to complete the following Q-Learning equation:

    ```py
    Q[__A__, __B__] = Q[__A__, __B__] + LEARNING_RATE * (reward + GAMMA * np.max(Q[__C__, :]) - Q[__A__, __B__])
    ```

  answers:
    - |
      A: `state`

      B: `action`

      C: `next_state`
    - |
      A: `state`

      B: `action`

      C: `prev_state`
    - |
      A: `state`

      B: `reaction`

      C: `next_state`
  solution: 1