Skip to content

Commit

Permalink
rerun simulations
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsvdLaar committed May 16, 2024
1 parent d817f03 commit b90799a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 87 deletions.
45 changes: 10 additions & 35 deletions Part2/T-maze_Bargain.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[32m\u001b[1m Activating\u001b[22m\u001b[39m project at `c:\\Simulations\\LAIF`\n"
]
}
],
"outputs": [],
"source": [
"using Pkg\n",
"Pkg.activate(\"..\")\n",
Expand All @@ -29,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -42,7 +34,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -64,7 +56,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -89,7 +81,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -113,7 +105,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -144,7 +136,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -183,31 +175,14 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"c:\\\\Simulations\\\\LAIF\\\\Part2\\\\figures\\\\GFE_offers.png\""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"include(\"visualizations.jl\")\n",
"plotOffers(G_primes, a_primes, o_primes)\n",
"savefig(\"figures/GFE_offers\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
60 changes: 8 additions & 52 deletions Part2/T-maze_Goals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@
},
{
"cell_type": "code",
"execution_count": 125,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[32m\u001b[1m Activating\u001b[22m\u001b[39m project at `c:\\Simulations\\LAIF`\n"
]
}
],
"outputs": [],
"source": [
"using Pkg\n",
"Pkg.activate(\"..\")\n",
Expand All @@ -29,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 126,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -46,19 +38,9 @@
},
{
"cell_type": "code",
"execution_count": 127,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"structured (generic function with 1 method)"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"include(\"../goal_observation.jl\")\n",
"\n",
Expand Down Expand Up @@ -98,7 +80,7 @@
},
{
"cell_type": "code",
"execution_count": 128,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -147,40 +129,14 @@
},
{
"cell_type": "code",
"execution_count": 129,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"GKS: Rectangle definition is invalid in routine SET_VIEWPORT\n"
]
},
{
"data": {
"text/plain": [
"\"c:\\\\Simulations\\\\LAIF\\\\Part2\\\\figures\\\\GFE_C.png\""
]
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"include(\"visualizations.jl\")\n",
"\n",
"plotLearnedGoals(C_0, C, Gs, S)\n",
"\n",
"savefig(\"figures/GFE_C\")"
]
},
{
"cell_type": "code",
"execution_count": 130,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Binary file modified Part2/figures/GFE_A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Part2/figures/GFE_FE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Part2/figures/GFE_hist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Part2/figures/GFE_wins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Part2/figures/wins_100_30.jld2
Binary file not shown.

0 comments on commit b90799a

Please sign in to comment.