Skip to content

Commit

Permalink
Merge pull request #214 from nsydn/master
Browse files Browse the repository at this point in the history
a test pull req (corrected few typos)
  • Loading branch information
dennybritz authored Oct 2, 2019
2 parents 92205f5 + 7d23260 commit 89dacf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DP/Policy Iteration Solution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
" until an optimal policy is found.\n",
" \n",
" Args:\n",
" env: The OpenAI envrionment.\n",
" env: The OpenAI environment.\n",
" policy_eval_fn: Policy Evaluation function that takes 3 arguments:\n",
" policy, env, discount_factor.\n",
" discount_factor: gamma discount factor.\n",
Expand Down Expand Up @@ -124,7 +124,7 @@
" \n",
" # For each state...\n",
" for s in range(env.nS):\n",
" # The best action we would take under the currect policy\n",
" # The best action we would take under the current policy\n",
" chosen_a = np.argmax(policy[s])\n",
" \n",
" # Find the best action by one-step lookahead\n",
Expand Down

0 comments on commit 89dacf5

Please sign in to comment.