Repository: incubator-systemml
Updated Branches:
  refs/heads/master 2921f170a -> 98e0aa219


[SYSTEMML-1606] Update notebook samples with latest code


Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/98e0aa21
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/98e0aa21
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/98e0aa21

Branch: refs/heads/master
Commit: 98e0aa2196d0c43082dc9ed3b24b0bf393a52bd5
Parents: 2921f17
Author: Arvind Surve <ac...@yahoo.com>
Authored: Fri May 12 15:48:37 2017 -0700
Committer: Arvind Surve <ac...@yahoo.com>
Committed: Fri May 12 15:48:37 2017 -0700

----------------------------------------------------------------------
 samples/jupyter-notebooks/Autoencoder.ipynb | 63 ++++++++++++++----------
 1 file changed, 37 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/98e0aa21/samples/jupyter-notebooks/Autoencoder.ipynb
----------------------------------------------------------------------
diff --git a/samples/jupyter-notebooks/Autoencoder.ipynb 
b/samples/jupyter-notebooks/Autoencoder.ipynb
index ec9c2aa..47e8e03 100644
--- a/samples/jupyter-notebooks/Autoencoder.ipynb
+++ b/samples/jupyter-notebooks/Autoencoder.ipynb
@@ -9,23 +9,35 @@
    ]
   },
   {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "## Install SystemML Python package and jar file"
+   ]
+  },
+  {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": false
-   },
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "#!pip install --user systemml>=0.14.0\n",
+    "!pip install 
~/git/incubator-systemml/target/systemml-1.0.0-incubating-SNAPSHOT-python.tgz"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
    "outputs": [],
    "source": [
-    "#!pip install --user systemml>0.13.0\n",
     "!pip show systemml"
    ]
   },
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": false
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "import pandas as pd\n",
@@ -65,9 +77,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": false
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "X_pd = pd.DataFrame(range(1, 
2001,1),dtype=float).values.reshape(100,20)\n",
@@ -81,9 +91,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": false
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "!ls -l /tmp/data/Input"
@@ -92,9 +100,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": false
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "autoencoderURL = 
\"https://raw.githubusercontent.com/apache/incubator-systemml/master/scripts/staging/autoencoder-2layer.dml\"\n";,
@@ -114,9 +120,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": false
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "!ls -l /tmp/data/Output"
@@ -133,7 +137,6 @@
    "cell_type": "code",
    "execution_count": null,
    "metadata": {
-    "collapsed": false,
     "scrolled": true
    },
    "outputs": [],
@@ -150,18 +153,26 @@
     "iter, num_iters_per_epoch, beg, end, o = result.get(*rets)\n",
     "W1, b1, W2, b2, W3, b3, W4, b4 = result.get(*rets2)\n",
     "\n",
-    "print (iter, num_iters_per_epoch, beg, end, o)\n",
-    "W1.toDF().head(3)"
+    "print (iter, num_iters_per_epoch, beg, end, o)"
    ]
   },
   {
-   "cell_type": "code",
-   "execution_count": null,
+   "cell_type": "markdown",
    "metadata": {
     "collapsed": true
    },
+   "source": [
+    "## Uninstall/Clean up SystemML Python package and jar file"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
    "outputs": [],
-   "source": []
+   "source": [
+    "!yes | pip uninstall systemml"
+   ]
   }
  ],
  "metadata": {
@@ -184,5 +195,5 @@
   }
  },
  "nbformat": 4,
- "nbformat_minor": 0
+ "nbformat_minor": 1
 }

Reply via email to