Skip to content

Commit

Permalink
add comment to play_and_record fun
Browse files Browse the repository at this point in the history
  • Loading branch information
laktionov committed Jul 2, 2023
1 parent cebc0aa commit fe79654
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion week04_approx_rl/homework_pytorch_debug.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
"def play_and_record(initial_state, agent, env, exp_replay, n_steps=1):\n",
" \"\"\"\n",
" Play the game for exactly n_steps, record every (s,a,r,s', done) to replay buffer.\n",
" Whenever game ends, add record with done=True and reset the game.\n",
" Whenever game ends due to termination or truncation, add record with done=terminated and reset the game.\n",
" It is guaranteed that env has terminated=False when passed to this function.\n",
"\n",
" PLEASE DO NOT RESET ENV UNLESS IT IS \"DONE\"\n",
Expand Down
2 changes: 1 addition & 1 deletion week04_approx_rl/homework_pytorch_main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@
"def play_and_record(initial_state, agent, env, exp_replay, n_steps=1):\n",
" \"\"\"\n",
" Play the game for exactly n_steps, record every (s,a,r,s', done) to replay buffer.\n",
" Whenever game ends, add record with done=True and reset the game.\n",
" Whenever game ends due to termination or truncation, add record with done=terminated and reset the game.\n",
" It is guaranteed that env has terminated=False when passed to this function.\n",
"\n",
" PLEASE DO NOT RESET ENV UNLESS IT IS \"DONE\"\n",
Expand Down

0 comments on commit fe79654

Please sign in to comment.