mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r1141538 - /mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/ElasticBandPrior.java
Date Thu, 30 Jun 2011 13:54:30 GMT
Author: srowen
Date: Thu Jun 30 13:54:29 2011
New Revision: 1141538

URL: http://svn.apache.org/viewvc?rev=1141538&view=rev
Log:
Add no-arg constructor to make it readable as a Writable

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/ElasticBandPrior.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/ElasticBandPrior.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/ElasticBandPrior.java?rev=1141538&r1=1141537&r2=1141538&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/ElasticBandPrior.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/ElasticBandPrior.java
Thu Jun 30 13:54:29 2011
@@ -30,6 +30,11 @@ public class ElasticBandPrior implements
   private L1 l1;
   private L2 l2;
 
+  // Exists for Writable
+  public ElasticBandPrior() {
+    this(0.0);
+  }
+
   public ElasticBandPrior(double alphaByLambda) {
     this.alphaByLambda = alphaByLambda;
     l1 = new L1();



Mime
View raw message