Skip to content

Commit

Permalink
Doc improvement: add comment describing what convolve does (openai#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
metric-space authored Jan 17, 2023
1 parent 019a593 commit bb368fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/tutorials/training_agents/blackjack_tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ def decay_epsilon(self):
rolling_length = 500
fig, axs = plt.subplots(ncols=3, figsize=(12, 5))
axs[0].set_title("Episode rewards")
# compute and assign a rolling average of the data to provide a smoother graph
reward_moving_average = (
np.convolve(
np.array(env.return_queue).flatten(), np.ones(rolling_length), mode="valid"
Expand Down

0 comments on commit bb368fe

Please sign in to comment.