Skip to content

Commit 48cf4ca

Browse files
authored
[Ch3Nb01] Installed dependencies using ch3-requirements.txt
1 parent b80bdaa commit 48cf4ca

File tree

1 file changed

+57
-12
lines changed

1 file changed

+57
-12
lines changed

Ch3/01_OneHotEncoding.ipynb

Lines changed: 57 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,51 @@
1717
{
1818
"cell_type": "code",
1919
"execution_count": 1,
20+
"metadata": {},
21+
"outputs": [
22+
{
23+
"name": "stdout",
24+
"output_type": "stream",
25+
"text": [
26+
"Requirement already satisfied: scikit-learn==0.21.3 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (0.21.3)\n",
27+
"Requirement already satisfied: scipy>=0.17.0 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from scikit-learn==0.21.3) (1.5.4)\n",
28+
"Requirement already satisfied: joblib>=0.11 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from scikit-learn==0.21.3) (1.0.1)\n",
29+
"Requirement already satisfied: numpy>=1.11.0 in c:\\users\\kumar apurv\\anaconda3\\envs\\ch3\\lib\\site-packages (from scikit-learn==0.21.3) (1.19.5)\n"
30+
]
31+
}
32+
],
33+
"source": [
34+
"# To install only the requirements of this notebook, uncomment the lines below and run this cell\n",
35+
"\n",
36+
"# ===========================\n",
37+
"\n",
38+
"!pip install scikit-learn==0.21.3\n",
39+
"\n",
40+
"# ==========================="
41+
]
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": 2,
46+
"metadata": {},
47+
"outputs": [],
48+
"source": [
49+
"# To install the requirements for the entire chapter, uncomment the lines below and run this cell\n",
50+
"\n",
51+
"# ===========================\n",
52+
"\n",
53+
"# try :\n",
54+
"# import google.colab\n",
55+
"# !curl https://raw.githubusercontent.com/practical-nlp/practical-nlp/master/Ch3/ch3-requirements.txt | xargs -n 1 -L 1 pip install\n",
56+
"# except ModuleNotFoundError :\n",
57+
"# !pip install -r \"ch3-requirements.txt\"\n",
58+
"\n",
59+
"# ==========================="
60+
]
61+
},
62+
{
63+
"cell_type": "code",
64+
"execution_count": 3,
2065
"metadata": {
2166
"colab": {
2267
"base_uri": "https://localhost:8080/",
@@ -33,7 +78,7 @@
3378
"['dog bites man', 'man bites dog', 'dog eats meat', 'man eats food']"
3479
]
3580
},
36-
"execution_count": 1,
81+
"execution_count": 3,
3782
"metadata": {},
3883
"output_type": "execute_result"
3984
}
@@ -46,7 +91,7 @@
4691
},
4792
{
4893
"cell_type": "code",
49-
"execution_count": 2,
94+
"execution_count": 4,
5095
"metadata": {
5196
"colab": {
5297
"base_uri": "https://localhost:8080/",
@@ -79,7 +124,7 @@
79124
},
80125
{
81126
"cell_type": "code",
82-
"execution_count": 3,
127+
"execution_count": 5,
83128
"metadata": {
84129
"colab": {},
85130
"colab_type": "code",
@@ -102,7 +147,7 @@
102147
},
103148
{
104149
"cell_type": "code",
105-
"execution_count": 4,
150+
"execution_count": 6,
106151
"metadata": {
107152
"colab": {
108153
"base_uri": "https://localhost:8080/",
@@ -126,7 +171,7 @@
126171
"[[0, 0, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 0, 0, 0, 0, 0]]"
127172
]
128173
},
129-
"execution_count": 4,
174+
"execution_count": 6,
130175
"metadata": {},
131176
"output_type": "execute_result"
132177
}
@@ -138,7 +183,7 @@
138183
},
139184
{
140185
"cell_type": "code",
141-
"execution_count": 5,
186+
"execution_count": 7,
142187
"metadata": {
143188
"colab": {
144189
"base_uri": "https://localhost:8080/",
@@ -159,7 +204,7 @@
159204
" [0, 0, 0, 0, 0, 0]]"
160205
]
161206
},
162-
"execution_count": 5,
207+
"execution_count": 7,
163208
"metadata": {},
164209
"output_type": "execute_result"
165210
}
@@ -171,7 +216,7 @@
171216
},
172217
{
173218
"cell_type": "code",
174-
"execution_count": 6,
219+
"execution_count": 8,
175220
"metadata": {
176221
"colab": {
177222
"base_uri": "https://localhost:8080/",
@@ -192,7 +237,7 @@
192237
" [0, 0, 0, 0, 0, 0]]"
193238
]
194239
},
195-
"execution_count": 6,
240+
"execution_count": 8,
196241
"metadata": {},
197242
"output_type": "execute_result"
198243
}
@@ -227,7 +272,7 @@
227272
},
228273
{
229274
"cell_type": "code",
230-
"execution_count": 7,
275+
"execution_count": 9,
231276
"metadata": {
232277
"colab": {},
233278
"colab_type": "code",
@@ -243,7 +288,7 @@
243288
},
244289
{
245290
"cell_type": "code",
246-
"execution_count": 8,
291+
"execution_count": 10,
247292
"metadata": {
248293
"colab": {
249294
"base_uri": "https://localhost:8080/",
@@ -307,7 +352,7 @@
307352
"name": "python",
308353
"nbconvert_exporter": "python",
309354
"pygments_lexer": "ipython3",
310-
"version": "3.6.7"
355+
"version": "3.6.13"
311356
}
312357
},
313358
"nbformat": 4,

0 commit comments

Comments
 (0)