Skip to content

Commit 57147ff

Browse files
committed
(fix): Whitespace in import removed
1 parent 755b1e9 commit 57147ff

11 files changed

+52
-40
lines changed

Diff for: data_preprocessing.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"from sklearn.model_selection import train_test_split\n",
7070
"import os\n",
7171
"\n",
72-
"% matplotlib inline"
72+
"%matplotlib inline"
7373
]
7474
},
7575
{
@@ -1621,7 +1621,7 @@
16211621
"metadata": {
16221622
"anaconda-cloud": {},
16231623
"kernelspec": {
1624-
"display_name": "Python [default]",
1624+
"display_name": "Python 3",
16251625
"language": "python",
16261626
"name": "python3"
16271627
},
@@ -1635,7 +1635,7 @@
16351635
"name": "python",
16361636
"nbconvert_exporter": "python",
16371637
"pygments_lexer": "ipython3",
1638-
"version": "3.6.4"
1638+
"version": "3.6.9"
16391639
}
16401640
},
16411641
"nbformat": 4,

Diff for: decision_tree_classification.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"from sklearn.model_selection import train_test_split\n",
7171
"np.random.seed(123)\n",
7272
"\n",
73-
"% matplotlib inline"
73+
"%matplotlib inline"
7474
]
7575
},
7676
{
@@ -514,9 +514,9 @@
514514
"metadata": {
515515
"anaconda-cloud": {},
516516
"kernelspec": {
517-
"display_name": "Python [conda root]",
517+
"display_name": "Python 3",
518518
"language": "python",
519-
"name": "conda-root-py"
519+
"name": "python3"
520520
},
521521
"language_info": {
522522
"codemirror_mode": {
@@ -528,7 +528,7 @@
528528
"name": "python",
529529
"nbconvert_exporter": "python",
530530
"pygments_lexer": "ipython3",
531-
"version": "3.6.4"
531+
"version": "3.6.9"
532532
},
533533
"toc": {
534534
"nav_menu": {},

Diff for: decision_tree_regression.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"from sklearn.model_selection import train_test_split\n",
7373
"np.random.seed(123)\n",
7474
"\n",
75-
"% matplotlib inline"
75+
"%matplotlib inline"
7676
]
7777
},
7878
{
@@ -571,9 +571,9 @@
571571
"metadata": {
572572
"anaconda-cloud": {},
573573
"kernelspec": {
574-
"display_name": "Python [conda root]",
574+
"display_name": "Python 3",
575575
"language": "python",
576-
"name": "conda-root-py"
576+
"name": "python3"
577577
},
578578
"language_info": {
579579
"codemirror_mode": {
@@ -585,7 +585,7 @@
585585
"name": "python",
586586
"nbconvert_exporter": "python",
587587
"pygments_lexer": "ipython3",
588-
"version": "3.6.4"
588+
"version": "3.6.9"
589589
},
590590
"toc": {
591591
"nav_menu": {},

Diff for: image_preprocessing.ipynb

+18-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# How to preprocess an image dataset for machine learning\n",
88
"\n",
9-
"** What is preprocessing? ** \n",
9+
"**What is preprocessing?** \n",
1010
"Preprocessing describes the process of cleaning and converting a 'raw' (i.e. unprocessed) dataset into a clean dataset.\n",
1111
"\n",
1212
"![alt text](figures/preprocessing.png)\n",
@@ -17,7 +17,7 @@
1717
"\n",
1818
"In this notebook we will look at an **image dataset**.\n",
1919
"\n",
20-
"** Possible preprocessing steps **\n",
20+
"**Possible preprocessing steps**\n",
2121
"\n",
2222
"As mentioned already, the preprocessing steps you will need for your dataset depend on the nature of the dataset and models you want to train. Possible preprocessing steps for images are:\n",
2323
"\n",
@@ -60,14 +60,26 @@
6060
},
6161
{
6262
"cell_type": "code",
63-
"execution_count": 3,
63+
"execution_count": 1,
6464
"metadata": {
6565
"ExecuteTime": {
6666
"end_time": "2018-06-17T02:20:48.589362Z",
6767
"start_time": "2018-06-17T02:20:48.563901Z"
6868
}
6969
},
70-
"outputs": [],
70+
"outputs": [
71+
{
72+
"ename": "ModuleNotFoundError",
73+
"evalue": "No module named 'skimage'",
74+
"output_type": "error",
75+
"traceback": [
76+
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
77+
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
78+
"\u001b[0;32m<ipython-input-1-265b6fb9420c>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 8\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mmatplotlib\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpyplot\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mplt\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 10\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mskimage\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mio\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 11\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mskimage\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mimg_as_float\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 12\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mskimage\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtransform\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mresize\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mrotate\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
79+
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'skimage'"
80+
]
81+
}
82+
],
7183
"source": [
7284
"import glob\n",
7385
"import os\n",
@@ -83,7 +95,7 @@
8395
"from skimage.transform import resize, rotate\n",
8496
"from skimage.color import rgb2gray\n",
8597
"\n",
86-
"% matplotlib inline\n",
98+
"%matplotlib inline\n",
8799
"warnings.simplefilter('ignore')"
88100
]
89101
},
@@ -451,7 +463,7 @@
451463
"name": "python",
452464
"nbconvert_exporter": "python",
453465
"pygments_lexer": "ipython3",
454-
"version": "3.6.5"
466+
"version": "3.6.9"
455467
},
456468
"toc": {
457469
"nav_menu": {},

Diff for: k_nearest_neighbour.ipynb

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"cell_type": "code",
28-
"execution_count": 2,
28+
"execution_count": 1,
2929
"metadata": {
3030
"ExecuteTime": {
3131
"end_time": "2018-03-26T14:32:41.915819Z",
@@ -40,7 +40,7 @@
4040
"from sklearn.model_selection import train_test_split\n",
4141
"np.random.seed(123)\n",
4242
"\n",
43-
"% matplotlib inline"
43+
"%matplotlib inline"
4444
]
4545
},
4646
{
@@ -284,9 +284,9 @@
284284
"metadata": {
285285
"anaconda-cloud": {},
286286
"kernelspec": {
287-
"display_name": "Python [conda root]",
287+
"display_name": "Python 3",
288288
"language": "python",
289-
"name": "conda-root-py"
289+
"name": "python3"
290290
},
291291
"language_info": {
292292
"codemirror_mode": {
@@ -298,7 +298,7 @@
298298
"name": "python",
299299
"nbconvert_exporter": "python",
300300
"pygments_lexer": "ipython3",
301-
"version": "3.6.4"
301+
"version": "3.6.9"
302302
},
303303
"toc": {
304304
"nav_menu": {},

Diff for: kmeans.ipynb

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"cell_type": "code",
48-
"execution_count": 21,
48+
"execution_count": 1,
4949
"metadata": {
5050
"ExecuteTime": {
5151
"end_time": "2018-03-11T13:39:31.237035Z",
@@ -60,7 +60,7 @@
6060
"from sklearn.datasets import make_blobs\n",
6161
"np.random.seed(123)\n",
6262
"\n",
63-
"% matplotlib inline"
63+
"%matplotlib inline"
6464
]
6565
},
6666
{
@@ -262,9 +262,9 @@
262262
"metadata": {
263263
"anaconda-cloud": {},
264264
"kernelspec": {
265-
"display_name": "Python [conda root]",
265+
"display_name": "Python 3",
266266
"language": "python",
267-
"name": "conda-root-py"
267+
"name": "python3"
268268
},
269269
"language_info": {
270270
"codemirror_mode": {
@@ -276,7 +276,7 @@
276276
"name": "python",
277277
"nbconvert_exporter": "python",
278278
"pygments_lexer": "ipython3",
279-
"version": "3.6.4"
279+
"version": "3.6.9"
280280
},
281281
"toc": {
282282
"nav_menu": {},

Diff for: linear_regression.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@
479479
"name": "python",
480480
"nbconvert_exporter": "python",
481481
"pygments_lexer": "ipython3",
482-
"version": "3.8.3"
482+
"version": "3.6.9"
483483
},
484484
"toc": {
485485
"nav_menu": {},

Diff for: logistic_regression.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"cell_type": "code",
83-
"execution_count": 24,
83+
"execution_count": 1,
8484
"metadata": {
8585
"ExecuteTime": {
8686
"end_time": "2018-03-11T13:52:33.101260Z",
@@ -95,7 +95,7 @@
9595
"import matplotlib.pyplot as plt\n",
9696
"np.random.seed(123)\n",
9797
"\n",
98-
"% matplotlib inline"
98+
"%matplotlib inline"
9999
]
100100
},
101101
{
@@ -343,7 +343,7 @@
343343
"name": "python",
344344
"nbconvert_exporter": "python",
345345
"pygments_lexer": "ipython3",
346-
"version": "3.6.5"
346+
"version": "3.6.9"
347347
},
348348
"toc": {
349349
"nav_menu": {},

Diff for: perceptron.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"from sklearn.model_selection import train_test_split\n",
7676
"np.random.seed(123)\n",
7777
"\n",
78-
"% matplotlib inline"
78+
"%matplotlib inline"
7979
]
8080
},
8181
{
@@ -332,9 +332,9 @@
332332
"metadata": {
333333
"anaconda-cloud": {},
334334
"kernelspec": {
335-
"display_name": "Python [conda root]",
335+
"display_name": "Python 3",
336336
"language": "python",
337-
"name": "conda-root-py"
337+
"name": "python3"
338338
},
339339
"language_info": {
340340
"codemirror_mode": {
@@ -346,7 +346,7 @@
346346
"name": "python",
347347
"nbconvert_exporter": "python",
348348
"pygments_lexer": "ipython3",
349-
"version": "3.6.4"
349+
"version": "3.6.9"
350350
},
351351
"toc": {
352352
"nav_menu": {},

Diff for: simple_neural_net.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"from sklearn.model_selection import train_test_split\n",
133133
"np.random.seed(123)\n",
134134
"\n",
135-
"% matplotlib inline"
135+
"%matplotlib inline"
136136
]
137137
},
138138
{
@@ -531,9 +531,9 @@
531531
"metadata": {
532532
"anaconda-cloud": {},
533533
"kernelspec": {
534-
"display_name": "Python [conda root]",
534+
"display_name": "Python 3",
535535
"language": "python",
536-
"name": "conda-root-py"
536+
"name": "python3"
537537
},
538538
"language_info": {
539539
"codemirror_mode": {
@@ -545,7 +545,7 @@
545545
"name": "python",
546546
"nbconvert_exporter": "python",
547547
"pygments_lexer": "ipython3",
548-
"version": "3.6.4"
548+
"version": "3.6.9"
549549
},
550550
"toc": {
551551
"nav_menu": {},

Diff for: softmax_regression.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@
387387
"name": "python",
388388
"nbconvert_exporter": "python",
389389
"pygments_lexer": "ipython3",
390-
"version": "3.6.5"
390+
"version": "3.6.9"
391391
},
392392
"toc": {
393393
"nav_menu": {},

0 commit comments

Comments
 (0)