Return-Path: Delivered-To: apmail-mahout-commits-archive@www.apache.org Received: (qmail 41956 invoked from network); 22 Sep 2010 04:32:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Sep 2010 04:32:48 -0000 Received: (qmail 71682 invoked by uid 500); 22 Sep 2010 04:32:48 -0000 Delivered-To: apmail-mahout-commits-archive@mahout.apache.org Received: (qmail 71564 invoked by uid 500); 22 Sep 2010 04:32:46 -0000 Mailing-List: contact commits-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list commits@mahout.apache.org Received: (qmail 71556 invoked by uid 99); 22 Sep 2010 04:32:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 04:32:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Sep 2010 04:32:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 78AF8238890A; Wed, 22 Sep 2010 04:32:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r999751 - /mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.java Date: Wed, 22 Sep 2010 04:32:22 -0000 To: commits@mahout.apache.org From: tdunning@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100922043222.78AF8238890A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tdunning Date: Wed Sep 22 04:32:22 2010 New Revision: 999751 URL: http://svn.apache.org/viewvc?rev=999751&view=rev Log: Added window setting Modified: mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.java Modified: mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.java URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.java?rev=999751&r1=999750&r2=999751&view=diff ============================================================================== --- mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.java (original) +++ mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/AdaptiveLogisticRegression.java Wed Sep 22 04:32:22 2010 @@ -70,6 +70,7 @@ public class AdaptiveLogisticRegression private int poolSize = 20; private State seed; private int numFeatures; + private double averagingWindow; // for GSON private AdaptiveLogisticRegression() { @@ -264,6 +265,10 @@ public class AdaptiveLogisticRegression this.numFeatures = numFeatures; } + public void setAveragingWindow(int averagingWindow) { + seed.getPayload().getLearner().setWindowSize(averagingWindow); + } + /** * Provides a shim between the EP optimization stuff and the CrossFoldLearner. The most important * interface has to do with the parameters of the optimization. These are taken from the double[]