Skip to content

Commit

Permalink
fix ewma
Browse files Browse the repository at this point in the history
  • Loading branch information
justheuristic committed Jul 10, 2018
1 parent 7e65c0a commit 7d9ebbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion week3_model_free/experience_replay.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
"source": [
"from IPython.display import clear_output\n",
"from pandas import DataFrame\n",
"moving_average = lambda x, span: DataFrame({'x':np.asarray(x)}).x.ewm(span=span).mean().values\n",
"moving_average = lambda x, span=100: DataFrame({'x':np.asarray(x)}).x.ewm(span=span).mean().values\n",
"\n",
"rewards_replay, rewards_baseline = [], []\n",
"\n",
Expand Down

0 comments on commit 7d9ebbb

Please sign in to comment.