Skip to content

Commit

Permalink
Merge pull request rasbt#127 from 4may/typo-ch18
Browse files Browse the repository at this point in the history
fix typo in DQNAgent 'self.enf' -> 'self.env'
  • Loading branch information
rasbt authored May 5, 2020
2 parents 5d63c16 + f32e592 commit 6970109
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 6970109

Please sign in to comment.