Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix parameter name in tutorial code #1242

Merged
merged 3 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading