Skip to content

Commit 4c1df95

Browse files
authored
[Ch3Nb10] Installed dependencies using ch3-requirements.txt
1 parent f784b77 commit 4c1df95

File tree

1 file changed

+107
-17
lines changed

1 file changed

+107
-17
lines changed

Ch3/10_Visualizing_Embeddings_using_Tensorboard.ipynb

Lines changed: 107 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,107 @@
1111
"cell_type": "code",
1212
"execution_count": 1,
1313
"metadata": {},
14-
"outputs": [],
14+
"outputs": [
15+
{
16+
"name": "stdout",
17+
"output_type": "stream",
18+
"text": [
19+
"Collecting tensorflow==1.14.0\n",
20+
" Using cached tensorflow-1.14.0-cp36-cp36m-win_amd64.whl (68.3 MB)\n",
21+
"Collecting keras-preprocessing>=1.0.5\n",
22+
" Using cached Keras_Preprocessing-1.1.2-py2.py3-none-any.whl (42 kB)\n",
23+
"Requirement already satisfied: wheel>=0.26 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from tensorflow==1.14.0) (0.36.2)\n",
24+
"Collecting google-pasta>=0.1.6\n",
25+
" Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)\n",
26+
"Collecting gast>=0.2.0\n",
27+
" Using cached gast-0.5.0-py3-none-any.whl (10 kB)\n",
28+
"Collecting tensorflow-estimator<1.15.0rc0,>=1.14.0rc0\n",
29+
" Using cached tensorflow_estimator-1.14.0-py2.py3-none-any.whl (488 kB)\n",
30+
"Collecting keras-applications>=1.0.6\n",
31+
" Using cached Keras_Applications-1.0.8-py3-none-any.whl (50 kB)\n",
32+
"Collecting grpcio>=1.8.6\n",
33+
" Using cached grpcio-1.39.0-cp36-cp36m-win_amd64.whl (3.2 MB)\n",
34+
"Collecting tensorboard<1.15.0,>=1.14.0\n",
35+
" Using cached tensorboard-1.14.0-py3-none-any.whl (3.1 MB)\n",
36+
"Collecting numpy<2.0,>=1.14.5\n",
37+
" Using cached numpy-1.19.5-cp36-cp36m-win_amd64.whl (13.2 MB)\n",
38+
"Collecting termcolor>=1.1.0\n",
39+
" Using cached termcolor-1.1.0-py3-none-any.whl\n",
40+
"Collecting wrapt>=1.11.1\n",
41+
" Using cached wrapt-1.12.1-cp36-cp36m-win_amd64.whl\n",
42+
"Requirement already satisfied: six>=1.10.0 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from tensorflow==1.14.0) (1.16.0)\n",
43+
"Collecting absl-py>=0.7.0\n",
44+
" Using cached absl_py-0.13.0-py3-none-any.whl (132 kB)\n",
45+
"Collecting protobuf>=3.6.1\n",
46+
" Using cached protobuf-3.17.3-cp36-cp36m-win_amd64.whl (910 kB)\n",
47+
"Collecting astor>=0.6.0\n",
48+
" Using cached astor-0.8.1-py2.py3-none-any.whl (27 kB)\n",
49+
"Collecting h5py\n",
50+
" Using cached h5py-3.1.0-cp36-cp36m-win_amd64.whl (2.7 MB)\n",
51+
"Collecting markdown>=2.6.8\n",
52+
" Using cached Markdown-3.3.4-py3-none-any.whl (97 kB)\n",
53+
"Requirement already satisfied: setuptools>=41.0.0 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0) (52.0.0.post20210125)\n",
54+
"Collecting werkzeug>=0.11.15\n",
55+
" Using cached Werkzeug-2.0.1-py3-none-any.whl (288 kB)\n",
56+
"Requirement already satisfied: importlib-metadata in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from markdown>=2.6.8->tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0) (4.6.1)\n",
57+
"Collecting dataclasses\n",
58+
" Using cached dataclasses-0.8-py3-none-any.whl (19 kB)\n",
59+
"Collecting cached-property\n",
60+
" Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)\n",
61+
"Requirement already satisfied: typing-extensions>=3.6.4 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from importlib-metadata->markdown>=2.6.8->tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0) (3.10.0.0)\n",
62+
"Requirement already satisfied: zipp>=0.5 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from importlib-metadata->markdown>=2.6.8->tensorboard<1.15.0,>=1.14.0->tensorflow==1.14.0) (3.5.0)\n",
63+
"Installing collected packages: numpy, dataclasses, cached-property, werkzeug, protobuf, markdown, h5py, grpcio, absl-py, wrapt, termcolor, tensorflow-estimator, tensorboard, keras-preprocessing, keras-applications, google-pasta, gast, astor, tensorflow\n",
64+
"Successfully installed absl-py-0.13.0 astor-0.8.1 cached-property-1.5.2 dataclasses-0.8 gast-0.5.0 google-pasta-0.2.0 grpcio-1.39.0 h5py-3.1.0 keras-applications-1.0.8 keras-preprocessing-1.1.2 markdown-3.3.4 numpy-1.19.5 protobuf-3.17.3 tensorboard-1.14.0 tensorflow-1.14.0 tensorflow-estimator-1.14.0 termcolor-1.1.0 werkzeug-2.0.1 wrapt-1.12.1\n",
65+
"Collecting gensim==3.6.0\n",
66+
" Using cached gensim-3.6.0-cp36-cp36m-win_amd64.whl (23.6 MB)\n",
67+
"Requirement already satisfied: six>=1.5.0 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from gensim==3.6.0) (1.16.0)\n",
68+
"Collecting scipy>=0.18.1\n",
69+
" Using cached scipy-1.5.4-cp36-cp36m-win_amd64.whl (31.2 MB)\n",
70+
"Collecting smart-open>=1.2.1\n",
71+
" Using cached smart_open-5.1.0-py3-none-any.whl (57 kB)\n",
72+
"Requirement already satisfied: numpy>=1.11.3 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from gensim==3.6.0) (1.19.5)\n",
73+
"Installing collected packages: smart-open, scipy, gensim\n",
74+
"Successfully installed gensim-3.6.0 scipy-1.5.4 smart-open-5.1.0\n",
75+
"Requirement already satisfied: numpy==1.19.5 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (1.19.5)\n"
76+
]
77+
}
78+
],
1579
"source": [
16-
"#installing the required libraries\n",
17-
"!pip install tensorflow==1.14.0"
80+
"# To install only the requirements of this notebook, uncomment the lines below and run this cell\n",
81+
"\n",
82+
"# ===========================\n",
83+
"\n",
84+
"!pip install tensorflow==1.14.0\n",
85+
"!pip install gensim==3.6.0\n",
86+
"!pip install numpy==1.19.5\n",
87+
"\n",
88+
"# ==========================="
1889
]
1990
},
2091
{
2192
"cell_type": "code",
2293
"execution_count": 2,
2394
"metadata": {},
2495
"outputs": [],
96+
"source": [
97+
"# To install the requirements for the entire chapter, uncomment the lines below and run this cell\n",
98+
"\n",
99+
"# ===========================\n",
100+
"\n",
101+
"# try :\n",
102+
"# import google.colab\n",
103+
"# !curl https://raw.githubusercontent.com/practical-nlp/practical-nlp/master/Ch3/ch3-requirements.txt | xargs -n 1 -L 1 pip install\n",
104+
"# except ModuleNotFoundError :\n",
105+
"# !pip install -r \"ch3-requirements.txt\"\n",
106+
"\n",
107+
"# ==========================="
108+
]
109+
},
110+
{
111+
"cell_type": "code",
112+
"execution_count": 3,
113+
"metadata": {},
114+
"outputs": [],
25115
"source": [
26116
"#making the required imports\n",
27117
"import warnings #ignoring the generated warnings\n",
@@ -38,7 +128,7 @@
38128
},
39129
{
40130
"cell_type": "code",
41-
"execution_count": 3,
131+
"execution_count": 4,
42132
"metadata": {},
43133
"outputs": [],
44134
"source": [
@@ -49,7 +139,7 @@
49139
},
50140
{
51141
"cell_type": "code",
52-
"execution_count": 4,
142+
"execution_count": 5,
53143
"metadata": {},
54144
"outputs": [],
55145
"source": [
@@ -59,7 +149,7 @@
59149
},
60150
{
61151
"cell_type": "code",
62-
"execution_count": 5,
152+
"execution_count": 6,
63153
"metadata": {},
64154
"outputs": [],
65155
"source": [
@@ -69,7 +159,7 @@
69159
},
70160
{
71161
"cell_type": "code",
72-
"execution_count": 6,
162+
"execution_count": 7,
73163
"metadata": {},
74164
"outputs": [],
75165
"source": [
@@ -91,7 +181,7 @@
91181
},
92182
{
93183
"cell_type": "code",
94-
"execution_count": 7,
184+
"execution_count": 8,
95185
"metadata": {},
96186
"outputs": [],
97187
"source": [
@@ -101,7 +191,7 @@
101191
},
102192
{
103193
"cell_type": "code",
104-
"execution_count": 8,
194+
"execution_count": 9,
105195
"metadata": {},
106196
"outputs": [],
107197
"source": [
@@ -112,7 +202,7 @@
112202
},
113203
{
114204
"cell_type": "code",
115-
"execution_count": 9,
205+
"execution_count": 10,
116206
"metadata": {},
117207
"outputs": [],
118208
"source": [
@@ -122,7 +212,7 @@
122212
},
123213
{
124214
"cell_type": "code",
125-
"execution_count": 10,
215+
"execution_count": 11,
126216
"metadata": {},
127217
"outputs": [],
128218
"source": [
@@ -132,7 +222,7 @@
132222
},
133223
{
134224
"cell_type": "code",
135-
"execution_count": 11,
225+
"execution_count": 12,
136226
"metadata": {},
137227
"outputs": [],
138228
"source": [
@@ -142,7 +232,7 @@
142232
},
143233
{
144234
"cell_type": "code",
145-
"execution_count": 12,
235+
"execution_count": 13,
146236
"metadata": {},
147237
"outputs": [],
148238
"source": [
@@ -153,7 +243,7 @@
153243
},
154244
{
155245
"cell_type": "code",
156-
"execution_count": 13,
246+
"execution_count": 14,
157247
"metadata": {},
158248
"outputs": [],
159249
"source": [
@@ -164,7 +254,7 @@
164254
},
165255
{
166256
"cell_type": "code",
167-
"execution_count": 14,
257+
"execution_count": 15,
168258
"metadata": {},
169259
"outputs": [
170260
{
@@ -173,7 +263,7 @@
173263
"'projections/model.ckpt-161017'"
174264
]
175265
},
176-
"execution_count": 14,
266+
"execution_count": 15,
177267
"metadata": {},
178268
"output_type": "execute_result"
179269
}
@@ -225,7 +315,7 @@
225315
"name": "python",
226316
"nbconvert_exporter": "python",
227317
"pygments_lexer": "ipython3",
228-
"version": "3.7.0"
318+
"version": "3.6.13"
229319
}
230320
},
231321
"nbformat": 4,

0 commit comments

Comments
 (0)