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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user