From 060420e1ace99d2928c23fb4b7501c6bbc943965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Mon, 21 Feb 2022 15:03:05 +1300 Subject: [PATCH] Download spam dataset into the ./datasets/ folder --- 13_loading_and_preprocessing_data.ipynb | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/13_loading_and_preprocessing_data.ipynb b/13_loading_and_preprocessing_data.ipynb index 1d7e4cd..cabddfa 100644 --- a/13_loading_and_preprocessing_data.ipynb +++ b/13_loading_and_preprocessing_data.ipynb @@ -3510,10 +3510,19 @@ "execution_count": 126, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Downloading data from https://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz\n", + "84131840/84125825 [==============================] - 27s 0us/step\n", + "84140032/84125825 [==============================] - 27s 0us/step\n" + ] + }, { "data": { "text/plain": [ - "PosixPath('/Users/ageron/.keras/datasets/aclImdb')" + "PosixPath('datasets/aclImdb')" ] }, "execution_count": 126, @@ -3526,7 +3535,8 @@ "\n", "root = \"https://ai.stanford.edu/~amaas/data/sentiment/\"\n", "filename = \"aclImdb_v1.tar.gz\"\n", - "filepath = tf.keras.utils.get_file(filename, root + filename, extract=True)\n", + "filepath = tf.keras.utils.get_file(filename, root + filename, extract=True,\n", + " cache_dir=\".\")\n", "path = Path(filepath).with_name(\"aclImdb\")\n", "path" ] @@ -3570,7 +3580,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "/Users/ageron/.keras/datasets/aclImdb/\n", + "datasets/aclImdb/\n", " test/\n", " neg/\n", " 0_2.txt\n",