Skip to content

Commit 9e63807

Browse files
authored
Merge pull request #2 from Archiit19/BugFixNew
Bug Fixes in Lesson01 and Lesson 02
2 parents d7937e7 + 2668ad2 commit 9e63807

17 files changed

Lines changed: 561952 additions & 29 deletions

Lesson01/Activity1.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"pip install autocorrect"
10+
]
11+
},
312
{
413
"cell_type": "code",
514
"execution_count": 1,
@@ -328,7 +337,7 @@
328337
"name": "python",
329338
"nbconvert_exporter": "python",
330339
"pygments_lexer": "ipython3",
331-
"version": "3.6.8"
340+
"version": "3.7.3"
332341
}
333342
},
334343
"nbformat": 4,

Lesson02/Exercise13.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
"iii) TextBlob<br>"
2121
]
2222
},
23+
{
24+
"cell_type": "code",
25+
"execution_count": null,
26+
"metadata": {},
27+
"outputs": [],
28+
"source": [
29+
"pip install textblob"
30+
]
31+
},
2332
{
2433
"cell_type": "code",
2534
"execution_count": 1,
@@ -220,7 +229,7 @@
220229
"name": "python",
221230
"nbconvert_exporter": "python",
222231
"pygments_lexer": "ipython3",
223-
"version": "3.7.1"
232+
"version": "3.7.3"
224233
}
225234
},
226235
"nbformat": 4,

Lesson02/Exercise14.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
"Sunil tweeted, “Witnessing 70th Republic Day of India from Rajpath, New Delhi. Mesmerizing performance by Indian Army! Awesome airshow! @india_official @indian_army #India #70thRepublic_Day. For more photos ping me sunil@photoking.com :) ”"
1919
]
2020
},
21+
{
22+
"cell_type": "code",
23+
"execution_count": null,
24+
"metadata": {},
25+
"outputs": [],
26+
"source": [
27+
"pip install keras tensorflow"
28+
]
29+
},
2130
{
2231
"cell_type": "code",
2332
"execution_count": 2,
@@ -133,7 +142,7 @@
133142
"name": "python",
134143
"nbconvert_exporter": "python",
135144
"pygments_lexer": "ipython3",
136-
"version": "3.7.1"
145+
"version": "3.7.3"
137146
}
138147
},
139148
"nbformat": 4,

Lesson02/Exercise27.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"metadata": {},
2121
"outputs": [],
2222
"source": [
23-
"#!pip install WordCloud"
23+
"pip install WordCloud"
2424
]
2525
},
2626
{
@@ -123,7 +123,7 @@
123123
"name": "python",
124124
"nbconvert_exporter": "python",
125125
"pygments_lexer": "ipython3",
126-
"version": "3.7.1"
126+
"version": "3.7.3"
127127
}
128128
},
129129
"nbformat": 4,

Lesson02/Exercise28.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"metadata": {},
2222
"outputs": [],
2323
"source": [
24-
"#!pip install spacy"
24+
"pip install spacy"
2525
]
2626
},
2727
{
@@ -30,7 +30,7 @@
3030
"metadata": {},
3131
"outputs": [],
3232
"source": [
33-
"#!python -m spacy download en"
33+
"python -m spacy download en"
3434
]
3535
},
3636
{
@@ -201,7 +201,7 @@
201201
"name": "python",
202202
"nbconvert_exporter": "python",
203203
"pygments_lexer": "ipython3",
204-
"version": "3.7.1"
204+
"version": "3.7.3"
205205
}
206206
},
207207
"nbformat": 4,

Lesson03/Activity5.ipynb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@
2424
"The dataset under CC0, with the underlying comment text being governed by Wikipedia's CC-SA-3.0"
2525
]
2626
},
27+
{
28+
"cell_type": "code",
29+
"execution_count": 1,
30+
"metadata": {},
31+
"outputs": [
32+
{
33+
"name": "stdout",
34+
"output_type": "stream",
35+
"text": [
36+
"Requirement already satisfied: xgboost in c:\\python\\python37\\lib\\site-packages (0.82)\n",
37+
"Requirement already satisfied: numpy in c:\\python\\python37\\lib\\site-packages (from xgboost) (1.16.2)\n",
38+
"Requirement already satisfied: scipy in c:\\python\\python37\\lib\\site-packages (from xgboost) (1.2.1)\n",
39+
"Note: you may need to restart the kernel to use updated packages.\n"
40+
]
41+
}
42+
],
43+
"source": [
44+
"pip install xgboost"
45+
]
46+
},
2747
{
2848
"cell_type": "code",
2949
"execution_count": 1,
@@ -955,7 +975,7 @@
955975
"name": "python",
956976
"nbconvert_exporter": "python",
957977
"pygments_lexer": "ipython3",
958-
"version": "3.7.1"
978+
"version": "3.7.3"
959979
}
960980
},
961981
"nbformat": 4,

Lesson03/Exercise30.ipynb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
"Create four clusters from text documents of sklearn's “The 20 newsgroups text dataset” using K-means clustering. Compare it with their actual categories. Use elbow method to obtain the optimal number of clusters."
99
]
1010
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": null,
14+
"metadata": {},
15+
"outputs": [],
16+
"source": [
17+
"pip install seaborn"
18+
]
19+
},
1120
{
1221
"cell_type": "code",
1322
"execution_count": 5,
@@ -525,7 +534,7 @@
525534
"name": "python",
526535
"nbconvert_exporter": "python",
527536
"pygments_lexer": "ipython3",
528-
"version": "3.7.1"
537+
"version": "3.7.3"
529538
}
530539
},
531540
"nbformat": 4,

Lesson03/Exercise34.ipynb

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@
1717
"3) Multi-stage sampling<br>"
1818
]
1919
},
20+
{
21+
"cell_type": "code",
22+
"execution_count": 1,
23+
"metadata": {},
24+
"outputs": [
25+
{
26+
"name": "stdout",
27+
"output_type": "stream",
28+
"text": [
29+
"Requirement already satisfied: xlrd in c:\\python\\python37\\lib\\site-packages (1.2.0)\n",
30+
"Note: you may need to restart the kernel to use updated packages.\n"
31+
]
32+
}
33+
],
34+
"source": [
35+
"pip install xlrd"
36+
]
37+
},
2038
{
2139
"cell_type": "code",
2240
"execution_count": 6,
@@ -508,7 +526,7 @@
508526
"name": "python",
509527
"nbconvert_exporter": "python",
510528
"pygments_lexer": "ipython3",
511-
"version": "3.7.1"
529+
"version": "3.7.3"
512530
}
513531
},
514532
"nbformat": 4,

Lesson03/Exercise39.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"metadata": {},
2020
"outputs": [],
2121
"source": [
22-
"#!pip install joblib"
22+
"pip install joblib"
2323
]
2424
},
2525
{
@@ -188,7 +188,7 @@
188188
"name": "python",
189189
"nbconvert_exporter": "python",
190190
"pygments_lexer": "ipython3",
191-
"version": "3.7.1"
191+
"version": "3.7.3"
192192
}
193193
},
194194
"nbformat": 4,

0 commit comments

Comments
 (0)