Skip to content

Commit e9b7694

Browse files
committed
updated skflow and tensorflow imports
1 parent 575da14 commit e9b7694

File tree

4 files changed

+28
-27
lines changed

4 files changed

+28
-27
lines changed

Diff for: OCR/OCR_With_TensorFlow.ipynb

+6-5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"import os\n",
3030
"import sys\n",
3131
"import tarfile\n",
32+
"import tensorflow as tf\n",
3233
"from IPython.display import display, Image\n",
3334
"from scipy import ndimage\n",
3435
"from sklearn.linear_model import LogisticRegression\n",
@@ -996,21 +997,21 @@
996997
],
997998
"metadata": {
998999
"kernelspec": {
999-
"display_name": "Python 2",
1000+
"display_name": "Python 3",
10001001
"language": "python",
1001-
"name": "python2"
1002+
"name": "python3"
10021003
},
10031004
"language_info": {
10041005
"codemirror_mode": {
10051006
"name": "ipython",
1006-
"version": 2
1007+
"version": 3
10071008
},
10081009
"file_extension": ".py",
10091010
"mimetype": "text/x-python",
10101011
"name": "python",
10111012
"nbconvert_exporter": "python",
1012-
"pygments_lexer": "ipython2",
1013-
"version": "2.7.11"
1013+
"pygments_lexer": "ipython3",
1014+
"version": "3.5.1"
10141015
}
10151016
},
10161017
"nbformat": 4,

Diff for: SKFlow Chess Example.ipynb

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"outputs": [],
2121
"source": [
22-
"import skflow\n",
22+
"import tensorflow.contrib.learn as skflow\n",
2323
"from sklearn import datasets, metrics\n",
2424
"import pandas as pd"
2525
]
@@ -516,21 +516,21 @@
516516
],
517517
"metadata": {
518518
"kernelspec": {
519-
"display_name": "Python 2",
519+
"display_name": "Python 3",
520520
"language": "python",
521-
"name": "python2"
521+
"name": "python3"
522522
},
523523
"language_info": {
524524
"codemirror_mode": {
525525
"name": "ipython",
526-
"version": 2
526+
"version": 3
527527
},
528528
"file_extension": ".py",
529529
"mimetype": "text/x-python",
530530
"name": "python",
531531
"nbconvert_exporter": "python",
532-
"pygments_lexer": "ipython2",
533-
"version": "2.7.10"
532+
"pygments_lexer": "ipython3",
533+
"version": "3.5.1"
534534
}
535535
},
536536
"nbformat": 4,

Diff for: SKFlow Introduction.ipynb

+9-9
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
],
3939
"source": [
40-
"import skflow\n",
40+
"import tensorflow.contrib.learn as skflow\n",
4141
"from sklearn import datasets, metrics\n",
4242
"\n",
4343
"iris = datasets.load_iris()\n",
@@ -73,7 +73,7 @@
7373
}
7474
],
7575
"source": [
76-
"import skflow\n",
76+
"import tensorflow.contrib.learn as skflow\n",
7777
"from sklearn import datasets, metrics, preprocessing\n",
7878
"\n",
7979
"boston = datasets.load_boston()\n",
@@ -110,7 +110,7 @@
110110
}
111111
],
112112
"source": [
113-
"import skflow\n",
113+
"import tensorflow.contrib.learn as skflow\n",
114114
"from sklearn import datasets, metrics\n",
115115
"\n",
116116
"iris = datasets.load_iris()\n",
@@ -146,7 +146,7 @@
146146
}
147147
],
148148
"source": [
149-
"import skflow\n",
149+
"import tensorflow.contrib.learn as skflow\n",
150150
"from sklearn import datasets, metrics\n",
151151
"\n",
152152
"iris = datasets.load_iris()\n",
@@ -214,21 +214,21 @@
214214
],
215215
"metadata": {
216216
"kernelspec": {
217-
"display_name": "Python 2",
217+
"display_name": "Python 3",
218218
"language": "python",
219-
"name": "python2"
219+
"name": "python3"
220220
},
221221
"language_info": {
222222
"codemirror_mode": {
223223
"name": "ipython",
224-
"version": 2
224+
"version": 3
225225
},
226226
"file_extension": ".py",
227227
"mimetype": "text/x-python",
228228
"name": "python",
229229
"nbconvert_exporter": "python",
230-
"pygments_lexer": "ipython2",
231-
"version": "2.7.10"
230+
"pygments_lexer": "ipython3",
231+
"version": "3.5.1"
232232
}
233233
},
234234
"nbformat": 4,

Diff for: Wine-Quality/Wine Quality.ipynb

+7-7
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@
17751775
"source": [
17761776
"# Train the model\n",
17771777
"classifier = skflow.TensorFlowEstimator(model_fn=categorical_model,\n",
1778-
" n_classes=3, learning_rate=0.01)"
1778+
" n_classes=n_classes, learning_rate=0.01)"
17791779
]
17801780
},
17811781
{
@@ -1948,7 +1948,7 @@
19481948
"source": [
19491949
"# Train the model\n",
19501950
"classifier = skflow.TensorFlowEstimator(model_fn=categorical_model,\n",
1951-
" n_classes=3, learning_rate=0.01)"
1951+
" n_classes=n_classes, learning_rate=0.01)"
19521952
]
19531953
},
19541954
{
@@ -2989,21 +2989,21 @@
29892989
],
29902990
"metadata": {
29912991
"kernelspec": {
2992-
"display_name": "Python 2",
2992+
"display_name": "Python 3",
29932993
"language": "python",
2994-
"name": "python2"
2994+
"name": "python3"
29952995
},
29962996
"language_info": {
29972997
"codemirror_mode": {
29982998
"name": "ipython",
2999-
"version": 2
2999+
"version": 3
30003000
},
30013001
"file_extension": ".py",
30023002
"mimetype": "text/x-python",
30033003
"name": "python",
30043004
"nbconvert_exporter": "python",
3005-
"pygments_lexer": "ipython2",
3006-
"version": "2.7.11"
3005+
"pygments_lexer": "ipython3",
3006+
"version": "3.5.1"
30073007
}
30083008
},
30093009
"nbformat": 4,

0 commit comments

Comments
 (0)