orhankislal commented on a change in pull request #14: Image loader python 
module, and demo notebook
URL: https://github.com/apache/madlib-site/pull/14#discussion_r294945917
 
 

 ##########
 File path: community-artifacts/Madlib Image Loader Demo.ipynb
 ##########
 @@ -0,0 +1,436 @@
+{
+ "cells": [
+  {
+   "cell_type": "code",
+   "execution_count": 1,
+   "metadata": {},
+   "outputs": [
+    {
+     "name": "stderr",
+     "output_type": "stream",
+     "text": [
+      "Using TensorFlow backend.\n"
+     ]
+    }
+   ],
+   "source": [
+    "import sys\n",
+    "import os\n",
+    "from keras.datasets import cifar10, cifar100, mnist, fashion_mnist, imdb, 
reuters"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 2,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "# Add community-artifacts to PYTHON_PATH\n",
+    "     # TIP:  You can skip this cell if working directory of notebook is 
community-artifacts\n",
+    "\n",
+    "home = %env HOME\n",
+    "     # TIP:  Change home,'workspace' to wherever you have cloned 
madlib-site repo\n",
+    "madlib_site_dir = 
os.path.join(home,'workspace','madlib-site','community-artifacts')\n",
+    "sys.path.append(madlib_site_dir)"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 3,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "# Import image loader module\n",
 
 Review comment:
   We need to mention that user should have psycopg installed.
   `pip install psycopg2-binary`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to