Skip to content

Commit

Permalink
Fix parameter name in tutorial code (#1242)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpesquet authored Nov 8, 2024
1 parent 30023a1 commit ec7e6d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ __pycache__/
# Virtualenv
/env
/venv
/.venv

# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info
Expand Down
2 changes: 1 addition & 1 deletion docs/introduction/train_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ epsilon_decay = start_epsilon / (n_episodes / 2) # reduce the exploration over
final_epsilon = 0.1

env = gym.make("Blackjack-v1", sab=False)
env = gym.wrappers.RecordEpisodeStatistics(env, deque_size=n_episodes)
env = gym.wrappers.RecordEpisodeStatistics(env, buffer_length=n_episodes)

agent = BlackjackAgent(
env=env,
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/training_agents/blackjack_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def decay_epsilon(self):
#


env = gym.wrappers.RecordEpisodeStatistics(env, deque_size=n_episodes)
env = gym.wrappers.RecordEpisodeStatistics(env, buffer_length=n_episodes)
for episode in tqdm(range(n_episodes)):
obs, info = env.reset()
done = False
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ toy-text = ["pygame >=2.1.3"]
toy_text = ["pygame >=2.1.3"] # kept for backward compatibility
jax = ["jax >=0.4.0", "jaxlib >=0.4.0", "flax >=0.5.0"]
torch = ["torch >=1.0.0"]
other = ["moviepy >=1.0.0", "matplotlib >=3.0", "opencv-python >=3.0"]
other = ["moviepy >=1.0.0", "matplotlib >=3.0", "opencv-python >=3.0", "seaborn >= 0.13"]
all = [
# All dependencies above except accept-rom-license
# NOTE: No need to manually remove the duplicates, setuptools automatically does that.
Expand Down

0 comments on commit ec7e6d7

Please sign in to comment.