Update 01_the_machine_learning_landscape.ipynb

must specifically import urllib.request
main
yx-chan131 2020-12-04 14:27:37 +08:00 committed by GitHub
parent 8ebdcffc6b
commit db6ed9d3c8
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"# Download the data\n", "# Download the data\n",
"import urllib\n", "import urllib.request\n",
"DOWNLOAD_ROOT = \"https://raw.githubusercontent.com/ageron/handson-ml2/master/\"\n", "DOWNLOAD_ROOT = \"https://raw.githubusercontent.com/ageron/handson-ml2/master/\"\n",
"os.makedirs(datapath, exist_ok=True)\n", "os.makedirs(datapath, exist_ok=True)\n",
"for filename in (\"oecd_bli_2015.csv\", \"gdp_per_capita.csv\"):\n", "for filename in (\"oecd_bli_2015.csv\", \"gdp_per_capita.csv\"):\n",