Skip to content

Commit

Permalink
Fix invalid notebooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
hallvardnmbu committed Nov 2, 2024
1 parent 3a2bd06 commit b125f21
Show file tree
Hide file tree
Showing 3 changed files with 193 additions and 146 deletions.
20 changes: 11 additions & 9 deletions frozen-lake/Q.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -14,7 +14,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -23,6 +23,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [],
"source": [
"AGENT = TabularQAgent(\n",
Expand All @@ -47,7 +48,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -77,7 +78,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -91,6 +92,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"outputs": [],
"source": [
"environment.close()"
Expand All @@ -102,23 +104,23 @@
],
"metadata": {
"kernelspec": {
"display_name": "INF202-Project",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 5
}
53 changes: 20 additions & 33 deletions help/debug.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"outputs": [
{
"name": "stderr",
Expand Down Expand Up @@ -145,11 +146,11 @@
"start_time": "2024-03-18T13:32:56.671267Z"
}
},
"id": "7eddd8ac374ecdcb",
"execution_count": 2
"id": "7eddd8ac374ecdcb"
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -221,11 +222,11 @@
"start_time": "2024-03-18T13:32:59.009497Z"
}
},
"id": "4b839f0d999cdb77",
"execution_count": 3
"id": "4b839f0d999cdb77"
},
{
"cell_type": "code",
"execution_count": 4,
"outputs": [
{
"data": {
Expand All @@ -250,8 +251,7 @@
"start_time": "2024-03-18T13:33:00.023893Z"
}
},
"id": "4aac0273261aa494",
"execution_count": 4
"id": "4aac0273261aa494"
},
{
"cell_type": "markdown",
Expand All @@ -265,6 +265,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"outputs": [],
"source": [
"import sys\n",
Expand All @@ -284,11 +285,11 @@
"start_time": "2024-03-19T10:48:27.771138Z"
}
},
"id": "346e45081c6649a1",
"execution_count": 12
"id": "346e45081c6649a1"
},
{
"cell_type": "code",
"execution_count": 6,
"outputs": [],
"source": [
"environment = gym.make('ALE/Tetris-v5', render_mode=\"rgb_array\",\n",
Expand Down Expand Up @@ -378,11 +379,11 @@
"start_time": "2024-03-19T10:48:28.675696Z"
}
},
"id": "3be28eae0e2bf0cc",
"execution_count": 13
"id": "3be28eae0e2bf0cc"
},
{
"cell_type": "code",
"execution_count": 7,
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -440,17 +441,16 @@
"start_time": "2024-03-19T10:48:44.434373Z"
}
},
"id": "b7b800f80354dae8",
"execution_count": 14
"id": "b7b800f80354dae8"
},
{
"cell_type": "code",
"execution_count": 8,
"outputs": [
{
"data": {
"text/plain": "21"
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -467,11 +467,11 @@
"start_time": "2024-03-19T10:48:45.328436Z"
}
},
"id": "d94039b6b2ddc0df",
"execution_count": 15
"id": "d94039b6b2ddc0df"
},
{
"cell_type": "code",
"execution_count": 9,
"outputs": [
{
"name": "stdout",
Expand All @@ -484,7 +484,6 @@
"data": {
"text/plain": "<matplotlib.image.AxesImage at 0x3277d0190>"
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -549,17 +548,16 @@
"start_time": "2024-03-19T10:48:58.325371Z"
}
},
"id": "6912864e968a9398",
"execution_count": 18
"id": "6912864e968a9398"
},
{
"cell_type": "code",
"execution_count": 10,
"outputs": [
{
"data": {
"text/plain": "Text(0.5, 1.0, '3 holes')"
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
},
Expand Down Expand Up @@ -600,17 +598,16 @@
"start_time": "2024-03-19T10:49:07.743205Z"
}
},
"id": "cf5bbd3771f6a39e",
"execution_count": 19
"id": "cf5bbd3771f6a39e"
},
{
"cell_type": "code",
"execution_count": 11,
"outputs": [
{
"data": {
"text/plain": "7"
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -625,17 +622,7 @@
"start_time": "2024-03-19T10:49:25.247865Z"
}
},
"id": "361a24ffd6f35d5e",
"execution_count": 20
},
{
"cell_type": "code",
"outputs": [],
"source": [],
"metadata": {
"collapsed": false
},
"id": "ea44f223be13c20f"
"id": "361a24ffd6f35d5e"
}
],
"metadata": {
Expand Down
Loading

0 comments on commit b125f21

Please sign in to comment.