Skip to content

Commit

Permalink
import urllib --> urllib.request
Browse files Browse the repository at this point in the history
  • Loading branch information
rickiepark committed Sep 10, 2020
1 parent d8f10e4 commit b3350e0
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 805 deletions.
6 changes: 3 additions & 3 deletions 01_the_machine_learning_landscape.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
],
"source": [
"# 데이터 다운로드\n",
"import urllib\n",
"import urllib.request\n",
"DOWNLOAD_ROOT = \"https://raw.githubusercontent.com/rickiepark/handson-ml2/master/\"\n",
"os.makedirs(datapath, exist_ok=True)\n",
"for filename in (\"oecd_bli_2015.csv\", \"gdp_per_capita.csv\"):\n",
Expand Down Expand Up @@ -2994,7 +2994,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "TensorFlow 2.3 on Python 3.6 (CUDA 10.1)",
"language": "python",
"name": "python3"
},
Expand All @@ -3008,7 +3008,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.6.9"
},
"nav_menu": {},
"toc": {
Expand Down
6 changes: 3 additions & 3 deletions 02_end_to_end_machine_learning_project.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"source": [
"import os\n",
"import tarfile\n",
"import urllib\n",
"import urllib.request\n",
"\n",
"DOWNLOAD_ROOT = \"https://raw.githubusercontent.com/rickiepark/handson-ml2/master/\"\n",
"HOUSING_PATH = os.path.join(\"datasets\", \"housing\")\n",
Expand Down Expand Up @@ -7364,7 +7364,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "TensorFlow 2.3 on Python 3.6 (CUDA 10.1)",
"language": "python",
"name": "python3"
},
Expand All @@ -7378,7 +7378,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.6.9"
},
"nav_menu": {
"height": "279px",
Expand Down
4 changes: 2 additions & 2 deletions 03_classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3575,7 +3575,7 @@
"source": [
"import os\n",
"import tarfile\n",
"import urllib\n",
"import urllib.request\n",
"\n",
"DOWNLOAD_ROOT = \"http://spamassassin.apache.org/old/publiccorpus/\"\n",
"HAM_URL = DOWNLOAD_ROOT + \"20030228_easy_ham.tar.bz2\"\n",
Expand Down Expand Up @@ -4589,7 +4589,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "TensorFlow 2.2 on Python 3.6 (CUDA 10.1)",
"display_name": "TensorFlow 2.3 on Python 3.6 (CUDA 10.1)",
"language": "python",
"name": "python3"
},
Expand Down
934 changes: 141 additions & 793 deletions 08_dimensionality_reduction.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions 09_unsupervised_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@
"metadata": {},
"outputs": [],
"source": [
"import urllib\n",
"import urllib.request\n",
"from sklearn.datasets import fetch_openml\n",
"\n",
"mnist = fetch_openml('mnist_784', version=1)\n",
Expand Down Expand Up @@ -8279,7 +8279,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "TensorFlow 2.3 on Python 3.6 (CUDA 10.1)",
"language": "python",
"name": "python3"
},
Expand All @@ -8293,7 +8293,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.6.9"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion 13_loading_and_preprocessing_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2368,7 +2368,7 @@
"source": [
"import os\n",
"import tarfile\n",
"import urllib\n",
"import urllib.request\n",
"\n",
"DOWNLOAD_ROOT = \"https://raw.githubusercontent.com/ageron/handson-ml2/master/\"\n",
"HOUSING_PATH = os.path.join(\"datasets\", \"housing\")\n",
Expand Down

0 comments on commit b3350e0

Please sign in to comment.