Skip to content

Commit 0f1b17c

Browse files
committed
Added some links to facilitate dependencies installation
1 parent a786fb6 commit 0f1b17c

File tree

1 file changed

+30
-49
lines changed

1 file changed

+30
-49
lines changed

GoTNotebook.ipynb

Lines changed: 30 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"cell_type": "markdown",
4141
"metadata": {},
4242
"source": [
43-
"#### Import ETL tools (pandas)"
43+
"#### Import ETL tools (pandas)\n",
44+
"They can easily be installed following [this guide](https://pandas.pydata.org/pandas-docs/stable/install.html)."
4445
]
4546
},
4647
{
@@ -57,7 +58,8 @@
5758
"cell_type": "markdown",
5859
"metadata": {},
5960
"source": [
60-
"#### Import Machine Learning tools (TensorFlow/sklearn)"
61+
"#### Import Machine Learning tools (TensorFlow)\n",
62+
"This must be installed as is explained in the codelab"
6163
]
6264
},
6365
{
@@ -70,9 +72,24 @@
7072
"from tensorflow.contrib.learn.python.learn import learn_runner\n",
7173
"from tensorflow.contrib.learn.python.learn.datasets import base\n",
7274
"from tensorflow.contrib.learn.python.learn.utils import input_fn_utils\n",
73-
"from tensorflow.contrib.learn.python.learn.utils import saved_model_export_utils\n",
74-
"\n",
75-
"from sklearn import model_selection # to split the train/test cases"
75+
"from tensorflow.contrib.learn.python.learn.utils import saved_model_export_utils\n"
76+
]
77+
},
78+
{
79+
"cell_type": "markdown",
80+
"metadata": {},
81+
"source": [
82+
"#### Import Sklearn to split the train/test cases\n",
83+
"To install it, you can follow [this guide](https://www.scipy.org/install.html) (SciPy) and [this other](http://scikit-learn.org/stable/install.html) one (Scikit-Learn). You might have to restart Jupyter after this installation."
84+
]
85+
},
86+
{
87+
"cell_type": "code",
88+
"execution_count": null,
89+
"metadata": {},
90+
"outputs": [],
91+
"source": [
92+
"from sklearn import model_selection "
7693
]
7794
},
7895
{
@@ -259,7 +276,7 @@
259276
},
260277
{
261278
"cell_type": "code",
262-
"execution_count": 26,
279+
"execution_count": 31,
263280
"metadata": {
264281
"scrolled": true
265282
},
@@ -302,7 +319,7 @@
302319
},
303320
{
304321
"cell_type": "code",
305-
"execution_count": 27,
322+
"execution_count": 30,
306323
"metadata": {},
307324
"outputs": [
308325
{
@@ -507,7 +524,7 @@
507524
"[5 rows x 32 columns]"
508525
]
509526
},
510-
"execution_count": 27,
527+
"execution_count": 30,
511528
"metadata": {},
512529
"output_type": "execute_result"
513530
}
@@ -870,45 +887,9 @@
870887
},
871888
{
872889
"cell_type": "code",
873-
"execution_count": 40,
890+
"execution_count": null,
874891
"metadata": {},
875-
"outputs": [
876-
{
877-
"name": "stdout",
878-
"output_type": "stream",
879-
"text": [
880-
"accuracy: 0.997436\n",
881-
"accuracy/baseline_label_mean: 0.758974\n",
882-
"accuracy/threshold_0.500000_mean: 0.997436\n",
883-
"auc: 0.999964\n",
884-
"auc_precision_recall: 0.999989\n",
885-
"global_step: 200\n",
886-
"labels/actual_label_mean: 0.758974\n",
887-
"labels/prediction_mean: 0.757851\n",
888-
"loss: 0.0123835\n",
889-
"precision/positive_threshold_0.500000_mean: 0.996633\n",
890-
"recall/positive_threshold_0.500000_mean: 1.0\n",
891-
"Model exported to [b'/tmp/tmppck_ehkt/export/Servo/1511867231']\n"
892-
]
893-
},
894-
{
895-
"ename": "SystemExit",
896-
"evalue": "",
897-
"output_type": "error",
898-
"traceback": [
899-
"An exception has occurred, use %tb to see the full traceback.\n",
900-
"\u001b[0;31mSystemExit\u001b[0m\n"
901-
]
902-
},
903-
{
904-
"name": "stderr",
905-
"output_type": "stream",
906-
"text": [
907-
"/usr/local/lib/python3.5/dist-packages/IPython/core/interactiveshell.py:2918: UserWarning: To exit: use 'exit', 'quit', or Ctrl-D.\n",
908-
" warn(\"To exit: use 'exit', 'quit', or Ctrl-D.\", stacklevel=1)\n"
909-
]
910-
}
911-
],
892+
"outputs": [],
912893
"source": [
913894
"def main(_):\n",
914895
" train_and_eval()\n",
@@ -962,14 +943,14 @@
962943
"language_info": {
963944
"codemirror_mode": {
964945
"name": "ipython",
965-
"version": 3
946+
"version": 2
966947
},
967948
"file_extension": ".py",
968949
"mimetype": "text/x-python",
969950
"name": "python",
970951
"nbconvert_exporter": "python",
971-
"pygments_lexer": "ipython3",
972-
"version": "3.5.2"
952+
"pygments_lexer": "ipython2",
953+
"version": "2.7.12"
973954
}
974955
},
975956
"nbformat": 4,

0 commit comments

Comments
 (0)