Skip to content

Commit

Permalink
fix typo in DQNAgent 'self.enf' -> 'self.env'
Browse files Browse the repository at this point in the history
  • Loading branch information
4may authored May 5, 2020
1 parent 5d63c16 commit f32e592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch18/cartpole/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
epsilon_greedy=1.0, epsilon_min=0.01,
epsilon_decay=0.995, learning_rate=1e-3,
max_memory_size=2000):
self.enf = env
self.env = env
self.state_size = env.observation_space.shape[0]
self.action_size = env.action_space.n

Expand Down

0 comments on commit f32e592

Please sign in to comment.