Return-Path: X-Original-To: apmail-systemml-dev-archive@minotaur.apache.org Delivered-To: apmail-systemml-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D95F1867B for ; Thu, 17 Dec 2015 08:02:55 +0000 (UTC) Received: (qmail 67716 invoked by uid 500); 17 Dec 2015 08:02:55 -0000 Delivered-To: apmail-systemml-dev-archive@systemml.apache.org Received: (qmail 67677 invoked by uid 500); 17 Dec 2015 08:02:55 -0000 Mailing-List: contact dev-help@systemml.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@systemml.incubator.apache.org Delivered-To: mailing list dev@systemml.incubator.apache.org Received: (qmail 67665 invoked by uid 99); 17 Dec 2015 08:02:54 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2015 08:02:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 534491804A5 for ; Thu, 17 Dec 2015 08:02:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ef-K93LB5vZf for ; Thu, 17 Dec 2015 08:02:45 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 1CD8542A70 for ; Thu, 17 Dec 2015 08:02:45 +0000 (UTC) Received: by mail-ob0-f173.google.com with SMTP id sd4so52233583obb.0 for ; Thu, 17 Dec 2015 00:02:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-type; bh=rudcLwYzrBrOtHlJkMvNbiqYf0UMTU+gcaHOxvljJTY=; b=MBo6b/66EwpbLRRJqQStA/etuKoBZ987k1t5lu692iSfP8WFKXgwJOKI1rVod5+hhS vQu2AT+7mfV7L1uMCqvUOmRkDwd7eu1BwcdezoXcc0GZuaMncFTo081bFnN5NF9lPEXY Wlwx3czlDMlRGfcIt8xAuny6+EfTcKAH4NKeQln7259bJwKDanqQJdamxfnadySz6b/z yPxHYXXgCTq+LoLCbbnXLY1CXNsSPvgaTkgsw5SJKgKk4Eo8pLaWO4wBY0OMt0BbgBNB j3ohUA4tYErNqbj/crzhi0bd1BT5cB5n9vuwHp6Qdptk2gFb1d7jTTGvFFDeqD1sGls8 Wu1A== X-Received: by 10.182.40.167 with SMTP id y7mr37754474obk.10.1450339357654; Thu, 17 Dec 2015 00:02:37 -0800 (PST) MIME-Version: 1.0 References: <201512170719.tBH7Jsvo000804@d03av04.boulder.ibm.com> In-Reply-To: <201512170719.tBH7Jsvo000804@d03av04.boulder.ibm.com> From: Mike Dusenberry Date: Thu, 17 Dec 2015 08:02:28 +0000 Message-ID: Subject: Re: DML example on main SystemML website To: dev@systemml.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11c33afc37859d0527137260 --001a11c33afc37859d0527137260 Content-Type: text/plain; charset=UTF-8 I think the NMF algorithm will be a great example to display to users. It's concise, still displays several aspects of the DML language, and is a useful ML algorithm. I also think Shirish's idea of a DML "cookbook" would be great. For the later, I would suggest that we keep the documentation simple by focusing mostly on just the code snippets, with corresponding labels for each. - Mike On Wed, Dec 16, 2015 at 11:20 PM Matthias Boehm wrote: > please include the computation of the objective function (for convergence > checks or at least print outs). Thanks. > > while( iter < max_iterations ){ > iter = iter + 1; > H = (H * (t(W) %*% (V/(W%*%H))))/t(colSums(W)); > W = (W * ((V/(W%*%H)) %*% t(H)))/t(rowSums(H)); > obj = as.scalar(colSums(W)%*%rowSums(H)) -sum(V * log(W%*%H)); > print("ITER=" + iter + " obj=" + obj); > } > > Regards, > Matthias > > [image: Inactive hide details for Frederick R Reiss---12/17/2015 01:41:00 > AM---We can use the Poisson nonnegative matrix factorization]Frederick R > Reiss---12/17/2015 01:41:00 AM---We can use the Poisson nonnegative matrix > factorization example from last week's webcast: > > From: Frederick R Reiss/Almaden/IBM@IBMUS > To: dev@systemml.incubator.apache.org > Date: 12/17/2015 01:41 AM > Subject: Re: DML example on main SystemML website > ------------------------------ > > > > We can use the Poisson nonnegative matrix factorization example from last > week's webcast: > > i = 0 > while(i < max_iterations) { > H = (H * (t(W) %*% (V/(W%*%H + epsilon)))) / t(colSums(W)) > W = (W * ((V/(W%*%H) + epsilon) %*% t(H))) / t(rowSums(H)) > i = i + 1; > } > > > Sound ok to everyone? > > Fred > > > Deron Eriksson ---12/16/2015 04:02:26 PM---Hi, I think the main SystemML > website at *http://systemml.incubator.apache.org/* > > > From: Deron Eriksson > To: dev@systemml.incubator.apache.org > Date: 12/16/2015 04:02 PM > Subject: DML example on main SystemML website > ------------------------------ > > > > Hi, > > I think the main SystemML website at > *http://systemml.incubator.apache.org/* > > needs to be updated so that the DML example is an actual algorithm or at > least a fragment of an algorithm. > > Does anyone have a recommendation for a short, concise example that shows > the power of DML? > > Thanks! > Deron > > > -- Mike Dusenberry GitHub: github.com/dusenberrymw LinkedIn: linkedin.com/in/mikedusenberry Sent from my iPhone --001a11c33afc37859d0527137260--