mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Move datasets to project ageron/data to shrink this repo
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user