Skip to content

Commit

Permalink
Update Value Iteration.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
romanoneg authored Nov 11, 2022
1 parent 737b6c0 commit 1a51684
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Value Iteration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
"\n",
"while True:\n",
" delta = 0\n",
" sweep = 1\n",
" for s in range(1, 100):\n",
" v = V[s]\n",
" q_value = 0\n",
Expand All @@ -132,7 +131,6 @@
" V[s] = max_value\n",
" delta = max(delta, abs(v - V[s]))\n",
" plt.plot([i for i in range(1, 100)], V[1:100])\n",
" sweep += 1\n",
" if(delta < ERROR):\n",
" break\n",
" \n",
Expand Down

0 comments on commit 1a51684

Please sign in to comment.