Skip to content

Commit 9cde734

Browse files
committed
edits following TR comments
1 parent 69c5ebd commit 9cde734

8 files changed

+2492
-6880
lines changed

chapter03/Recommending products.ipynb

Lines changed: 1397 additions & 1392 deletions
Large diffs are not rendered by default.

chapter04/Diagnosing a disease.ipynb

Lines changed: 261 additions & 1306 deletions
Large diffs are not rendered by default.

chapter04/Predicting stock prices with confidence.ipynb

Lines changed: 274 additions & 2092 deletions
Large diffs are not rendered by default.

chapter05/Finding the shortest path.ipynb

Lines changed: 57 additions & 145 deletions
Large diffs are not rendered by default.

chapter05/Making decisions based on knowledge.ipynb

Lines changed: 280 additions & 1509 deletions
Large diffs are not rendered by default.

chapter05/Solving the n-queens problem.ipynb

Lines changed: 188 additions & 269 deletions
Large diffs are not rendered by default.

chapter05/Writing a chess engine with Monte Carlo tree search.ipynb

Lines changed: 33 additions & 130 deletions
Large diffs are not rendered by default.

chapter06/Controling a cartpole.ipynb

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@
773773
"ray.init(ignore_reinit_error=True)\n",
774774
"trainer = PPOTrainer\n",
775775
"\n",
776+
"# if you run this on colab you might want to set num_workers=2\n",
776777
"analysis = tune.run(\n",
777778
" trainer,\n",
778779
" stop={'episode_reward_mean': 100},\n",
@@ -781,42 +782,6 @@
781782
")"
782783
]
783784
},
784-
{
785-
"cell_type": "code",
786-
"execution_count": 74,
787-
"metadata": {},
788-
"outputs": [
789-
{
790-
"name": "stdout",
791-
"output_type": "stream",
792-
"text": [
793-
"Collecting keras-rl\n",
794-
"\u001b[?25l Downloading https://files.pythonhosted.org/packages/ab/87/4b57eff8e4bd834cea0a75cd6c58198c9e42be29b600db9c14fafa72ec07/keras-rl-0.4.2.tar.gz (40kB)\n",
795-
"\u001b[K |████████████████████████████████| 40kB 320kB/s eta 0:00:01\n",
796-
"\u001b[?25hCollecting keras>=2.0.7 (from keras-rl)\n",
797-
"\u001b[?25l Downloading https://files.pythonhosted.org/packages/ad/fd/6bfe87920d7f4fd475acd28500a42482b6b84479832bdc0fe9e589a60ceb/Keras-2.3.1-py2.py3-none-any.whl (377kB)\n",
798-
"\u001b[K |████████████████████████████████| 378kB 1.2MB/s eta 0:00:01\n",
799-
"\u001b[?25hRequirement already satisfied: h5py in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (2.10.0)\n",
800-
"Requirement already satisfied: pyyaml in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (5.1.2)\n",
801-
"Requirement already satisfied: six>=1.9.0 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.12.0)\n",
802-
"Requirement already satisfied: keras-applications>=1.0.6 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.0.8)\n",
803-
"Requirement already satisfied: keras-preprocessing>=1.0.5 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.1.0)\n",
804-
"Requirement already satisfied: numpy>=1.9.1 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.17.2)\n",
805-
"Requirement already satisfied: scipy>=0.14 in ./anaconda3/lib/python3.7/site-packages (from keras>=2.0.7->keras-rl) (1.4.1)\n",
806-
"Building wheels for collected packages: keras-rl\n",
807-
" Building wheel for keras-rl (setup.py) ... \u001b[?25ldone\n",
808-
"\u001b[?25h Created wheel for keras-rl: filename=keras_rl-0.4.2-cp37-none-any.whl size=48380 sha256=c10a55df3269b59b5b41a9cafa9d7b283eed7a64947d55d910374e568d87aa9b\n",
809-
" Stored in directory: /home/ben/.cache/pip/wheels/7d/4d/84/9254c9f2e8f51865cb0dac8e79da85330c735551d31f73c894\n",
810-
"Successfully built keras-rl\n",
811-
"Installing collected packages: keras, keras-rl\n",
812-
"Successfully installed keras-2.3.1 keras-rl-0.4.2\n"
813-
]
814-
}
815-
],
816-
"source": [
817-
"!pip install keras-rl\n"
818-
]
819-
},
820785
{
821786
"cell_type": "code",
822787
"execution_count": null,
@@ -841,7 +806,7 @@
841806
"name": "python",
842807
"nbconvert_exporter": "python",
843808
"pygments_lexer": "ipython3",
844-
"version": "3.7.4"
809+
"version": "3.6.11"
845810
}
846811
},
847812
"nbformat": 4,

0 commit comments

Comments
 (0)