Skip to content

Commit

Permalink
fix last imports orders
Browse files Browse the repository at this point in the history
  • Loading branch information
Lookatator committed Aug 26, 2024
1 parent 0e61d6b commit 86c7f9a
Show file tree
Hide file tree
Showing 29 changed files with 126 additions and 84 deletions.
66 changes: 33 additions & 33 deletions examples/jumanji_snake.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "233e0f03",
"id": "0",
"metadata": {},
"source": [
"# Training a population on Jumanji-Snake with QDax\n",
Expand All @@ -15,7 +15,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "47b46c2f",
"id": "1",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -78,7 +78,7 @@
},
{
"cell_type": "markdown",
"id": "03c2f1f7",
"id": "2",
"metadata": {},
"source": [
"## Define hyperparameters"
Expand All @@ -87,7 +87,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "52dd1e3b",
"id": "3",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -105,7 +105,7 @@
},
{
"cell_type": "markdown",
"id": "8b8c890a",
"id": "4",
"metadata": {},
"source": [
"## Instantiate the snake environment"
Expand All @@ -114,7 +114,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a842cccc",
"id": "5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -132,7 +132,7 @@
},
{
"cell_type": "markdown",
"id": "776862f1",
"id": "6",
"metadata": {},
"source": [
"## Define the type of policy that will be used to solve the problem"
Expand All @@ -141,7 +141,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "2a1ce7d0",
"id": "7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -161,7 +161,7 @@
},
{
"cell_type": "markdown",
"id": "49586b07",
"id": "8",
"metadata": {},
"source": [
"## Utils to interact with the environment\n",
Expand All @@ -172,7 +172,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d1ff7827",
"id": "9",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -219,7 +219,7 @@
},
{
"cell_type": "markdown",
"id": "0078bc01",
"id": "10",
"metadata": {},
"source": [
"## Init a population of policies\n",
Expand All @@ -230,7 +230,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6cbd2065",
"id": "11",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -255,7 +255,7 @@
},
{
"cell_type": "markdown",
"id": "fe6bf07f",
"id": "12",
"metadata": {},
"source": [
"## Define a method to extract behavior descriptor when relevant"
Expand All @@ -264,7 +264,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a264b672",
"id": "13",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -311,7 +311,7 @@
},
{
"cell_type": "markdown",
"id": "1cdc5f87",
"id": "14",
"metadata": {},
"source": [
"## Define the scoring function"
Expand All @@ -320,7 +320,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "7b77d826",
"id": "15",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -333,7 +333,7 @@
},
{
"cell_type": "markdown",
"id": "6555491a",
"id": "16",
"metadata": {},
"source": [
"## Define the emitter used"
Expand All @@ -342,7 +342,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "30061ff4",
"id": "17",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -360,7 +360,7 @@
},
{
"cell_type": "markdown",
"id": "da7e9b74",
"id": "18",
"metadata": {},
"source": [
"## Define the algorithm used and apply the initial step\n",
Expand All @@ -371,7 +371,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f7b5c2d6",
"id": "19",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -415,7 +415,7 @@
},
{
"cell_type": "markdown",
"id": "9b1bfee5",
"id": "20",
"metadata": {},
"source": [
"## Run the optimization loop"
Expand All @@ -424,7 +424,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d1af3a35",
"id": "21",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -442,7 +442,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "114ea4a8",
"id": "22",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -452,7 +452,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "92a35bf0",
"id": "23",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -462,7 +462,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "79ada2d5",
"id": "24",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -472,7 +472,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "fe5da301",
"id": "25",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -489,7 +489,7 @@
},
{
"cell_type": "markdown",
"id": "93d8154e",
"id": "26",
"metadata": {},
"source": [
"## Play snake with the best policy\n",
Expand All @@ -500,7 +500,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3ff882f4",
"id": "27",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -511,7 +511,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "762c167e",
"id": "28",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -524,7 +524,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "07523e33",
"id": "29",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -537,7 +537,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "c75ce088",
"id": "30",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -550,7 +550,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "50ef95f6",
"id": "31",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -563,7 +563,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "40a03409",
"id": "32",
"metadata": {},
"outputs": [],
"source": [
Expand Down
Loading

0 comments on commit 86c7f9a

Please sign in to comment.