diff --git a/docs/tutorials/1_dqn_tutorial.ipynb b/docs/tutorials/1_dqn_tutorial.ipynb index 0558a663a..e38f36efc 100644 --- a/docs/tutorials/1_dqn_tutorial.ipynb +++ b/docs/tutorials/1_dqn_tutorial.ipynb @@ -39,26 +39,26 @@ "source": [ "# Train a Deep Q Network with TF-Agents\n", "\n", - "\u003ctable class=\"tfo-notebook-buttons\" align=\"left\"\u003e\n", - " \u003ctd\u003e\n", - " \u003ca target=\"_blank\" href=\"https://www.tensorflow.org/agents/tutorials/1_dqn_tutorial\"\u003e\n", - " \u003cimg src=\"https://www.tensorflow.org/images/tf_logo_32px.png\" /\u003e\n", - " View on TensorFlow.org\u003c/a\u003e\n", - " \u003c/td\u003e\n", - " \u003ctd\u003e\n", - " \u003ca target=\"_blank\" href=\"https://colab.research.google.com/github/tensorflow/agents/blob/master/docs/tutorials/1_dqn_tutorial.ipynb\"\u003e\n", - " \u003cimg src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" /\u003e\n", - " Run in Google Colab\u003c/a\u003e\n", - " \u003c/td\u003e\n", - " \u003ctd\u003e\n", - " \u003ca target=\"_blank\" href=\"https://github.com/tensorflow/agents/blob/master/docs/tutorials/1_dqn_tutorial.ipynb\"\u003e\n", - " \u003cimg src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" /\u003e\n", - " View source on GitHub\u003c/a\u003e\n", - " \u003c/td\u003e\n", - " \u003ctd\u003e\n", - " \u003ca href=\"https://storage.googleapis.com/tensorflow_docs/agents/docs/tutorials/1_dqn_tutorial.ipynb\"\u003e\u003cimg src=\"https://www.tensorflow.org/images/download_logo_32px.png\" /\u003eDownload notebook\u003c/a\u003e\n", - " \u003c/td\u003e\n", - "\u003c/table\u003e" + "\n", + " \n", + " \n", + " \n", + " \n", + "
\n", + " \n", + " \n", + " View on TensorFlow.org\n", + " \n", + " \n", + " \n", + " Run in Google Colab\n", + " \n", + " \n", + " \n", + " View source on GitHub\n", + " \n", + " Download notebook\n", + "
" ] }, { @@ -744,6 +744,19 @@ "agent.collect_data_spec._fields" ] }, + { + "cell_type": "markdown", + "source": [ + " **Note (Drivers):** This data collection loop is called a **Driver** in TF-Agents. Drivers implement this pattern so you don’t have to write it from scratch. See the **Drivers tutorial** and the **Drivers API** for details and alternatives like `DynamicStepDriver` and `DynamicEpisodeDriver`.\n", + "\n", + "- Drivers tutorial: https://www.tensorflow.org/agents/tutorials/4_drivers_tutorial \n", + "\n", + "- Drivers API: https://www.tensorflow.org/agents/api_docs/python/tf_agents/drivers/dynamic_step_driver\n" + ], + "metadata": { + "id": "33U8aV-zX0rz" + } + }, { "cell_type": "markdown", "metadata": { @@ -999,10 +1012,10 @@ " video = open(filename,'rb').read()\n", " b64 = base64.b64encode(video)\n", " tag = '''\n", - " \u003cvideo width=\"640\" height=\"480\" controls\u003e\n", - " \u003csource src=\"data:video/mp4;base64,{0}\" type=\"video/mp4\"\u003e\n", + " '''.format(b64.decode())\n", "\n", " return IPython.display.HTML(tag)" ] @@ -1084,4 +1097,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} +} \ No newline at end of file