From 16afbcdf83e66855f61e1dc2e837e912c690c7ea Mon Sep 17 00:00:00 2001 From: udlbook <110402648+udlbook@users.noreply.github.com> Date: Mon, 24 Mar 2025 15:35:15 -0400 Subject: [PATCH] Created using Colab --- Notebooks/Chap19/19_2_Dynamic_Programming.ipynb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Notebooks/Chap19/19_2_Dynamic_Programming.ipynb b/Notebooks/Chap19/19_2_Dynamic_Programming.ipynb index 844c376..f326f6b 100644 --- a/Notebooks/Chap19/19_2_Dynamic_Programming.ipynb +++ b/Notebooks/Chap19/19_2_Dynamic_Programming.ipynb @@ -4,7 +4,6 @@ "metadata": { "colab": { "provenance": [], - "authorship_tag": "ABX9TyOlD6kmCxX3SKKuh3oJikKA", "include_colab_link": true }, "kernelspec": { @@ -406,6 +405,10 @@ " state_values_new[state] = 3.0\n", " break\n", "\n", + " # TODO -- Write this function (from equation 19.11, but bear in mind policy is deterministic here)\n", + " # Replace this line\n", + " state_values_new[state] = 0\n", + "\n", " return state_values_new\n", "\n", "# Greedily choose the action that maximizes the value for each state.\n", @@ -527,4 +530,4 @@ } } ] -} +} \ No newline at end of file