Move datasets to project ageron/data to shrink this repo

This commit is contained in:
Aurélien Geron
2022-02-19 21:36:43 +13:00
parent 8745a9c2ac
commit c9b977309a
6 changed files with 27 additions and 31 deletions

View File

@@ -110,8 +110,8 @@
" housing_path = Path() / \"datasets\" / \"housing\"\n",
" if not (housing_path / \"housing.csv\").is_file():\n",
" housing_path.mkdir(parents=True, exist_ok=True)\n",
" root = \"https://raw.githubusercontent.com/ageron/handson-ml3/main/\"\n",
" url = root + \"datasets/housing/housing.tgz\"\n",
" data_root = \"https://github.com/ageron/data/raw/main/\"\n",
" url = data_root + \"housing/housing.tgz\"\n",
" tgz_path = housing_path / \"housing.tgz\"\n",
" urllib.request.urlretrieve(url, tgz_path)\n",
" with tarfile.open(tgz_path) as housing_tgz:\n",
@@ -578,8 +578,8 @@
"# Download the California image\n",
"filename = \"california.png\"\n",
"if not (IMAGES_PATH / filename).is_file():\n",
" root = \"https://raw.githubusercontent.com/ageron/handson-ml3/main/\"\n",
" url = root + \"images/end_to_end_project/\" + filename\n",
" homl3_root = \"https://github.com/ageron/handson-ml3/raw/main/\"\n",
" url = homl3_root + \"images/end_to_end_project/\" + filename\n",
" print(\"Downloading\", filename)\n",
" urllib.request.urlretrieve(url, IMAGES_PATH / filename)\n",
"\n",