Skip to content

Commit b39f480

Browse files
author
Markus Dumke
authored
fix typo
1 parent 13035b4 commit b39f480

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/plotting.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ def plot_episode_stats(stats, smoothing_window=10, noshow=False):
6464
# Plot the episode length over time
6565
fig1 = plt.figure(figsize=(10,5))
6666
plt.plot(stats.episode_lengths)
67-
plt.xlabel("Epsiode")
68-
plt.ylabel("Epsiode Length")
67+
plt.xlabel("Episode")
68+
plt.ylabel("Episode Length")
6969
plt.title("Episode Length over Time")
7070
if noshow:
7171
plt.close(fig1)
@@ -76,8 +76,8 @@ def plot_episode_stats(stats, smoothing_window=10, noshow=False):
7676
fig2 = plt.figure(figsize=(10,5))
7777
rewards_smoothed = pd.Series(stats.episode_rewards).rolling(smoothing_window, min_periods=smoothing_window).mean()
7878
plt.plot(rewards_smoothed)
79-
plt.xlabel("Epsiode")
80-
plt.ylabel("Epsiode Reward (Smoothed)")
79+
plt.xlabel("Episode")
80+
plt.ylabel("Episode Reward (Smoothed)")
8181
plt.title("Episode Reward over Time (Smoothed over window size {})".format(smoothing_window))
8282
if noshow:
8383
plt.close(fig2)
@@ -95,4 +95,4 @@ def plot_episode_stats(stats, smoothing_window=10, noshow=False):
9595
else:
9696
plt.show(fig3)
9797

98-
return fig1, fig2, fig3
98+
return fig1, fig2, fig3

0 commit comments

Comments
 (0)