mirror of
https://github.com/huggingface/deep-rl-class.git
synced 2026-04-05 11:38:43 +08:00
Update hands-on.mdx
This commit is contained in:
@@ -261,7 +261,8 @@ print("There are ", action_space, " possible actions")
|
||||
```
|
||||
|
||||
```python
|
||||
# Let's create our Qtable of size (state_space, action_space) and initialized each values at 0 using np.zeros
|
||||
# Let's create our Qtable of size (state_space, action_space) and initialized each values at 0 using np.zeros. np.zeros needs a tuple (a,b)
|
||||
|
||||
def initialize_q_table(state_space, action_space):
|
||||
Qtable =
|
||||
return Qtable
|
||||
|
||||
Reference in New Issue
Block a user