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

@@ -755,8 +755,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",
" root = \"https://github.com/ageron/data/raw/main/\"\n",
" url = 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",