hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1397539 - in /hama/trunk/examples/src: main/java/org/apache/hama/examples/GradientDescentExample.java test/java/org/apache/hama/examples/GradientDescentTest.java
Date Fri, 12 Oct 2012 12:28:24 GMT
Author: tommaso
Date: Fri Oct 12 12:28:23 2012
New Revision: 1397539

URL: http://svn.apache.org/viewvc?rev=1397539&view=rev
Log:
[HAMA-651] - fixing examples for gd

Modified:
    hama/trunk/examples/src/main/java/org/apache/hama/examples/GradientDescentExample.java
    hama/trunk/examples/src/test/java/org/apache/hama/examples/GradientDescentTest.java

Modified: hama/trunk/examples/src/main/java/org/apache/hama/examples/GradientDescentExample.java
URL: http://svn.apache.org/viewvc/hama/trunk/examples/src/main/java/org/apache/hama/examples/GradientDescentExample.java?rev=1397539&r1=1397538&r2=1397539&view=diff
==============================================================================
--- hama/trunk/examples/src/main/java/org/apache/hama/examples/GradientDescentExample.java
(original)
+++ hama/trunk/examples/src/main/java/org/apache/hama/examples/GradientDescentExample.java
Fri Oct 12 12:28:23 2012
@@ -43,6 +43,8 @@ public class GradientDescentExample {
         IOException, ClassNotFoundException {
     // BSP job configuration
     HamaConfiguration conf = new HamaConfiguration();
+    conf.setFloat(GradientDescentBSP.ALPHA, 0.002f);
+    conf.setFloat(GradientDescentBSP.THRESHOLD, 0.2f);
 
     BSPJob bsp = new BSPJob(conf, GradientDescentExample.class);
     // Set the job name

Modified: hama/trunk/examples/src/test/java/org/apache/hama/examples/GradientDescentTest.java
URL: http://svn.apache.org/viewvc/hama/trunk/examples/src/test/java/org/apache/hama/examples/GradientDescentTest.java?rev=1397539&r1=1397538&r2=1397539&view=diff
==============================================================================
--- hama/trunk/examples/src/test/java/org/apache/hama/examples/GradientDescentTest.java (original)
+++ hama/trunk/examples/src/test/java/org/apache/hama/examples/GradientDescentTest.java Fri
Oct 12 12:28:23 2012
@@ -27,7 +27,7 @@ import static org.junit.Assert.fail;
 public class GradientDescentTest {
   @Test
   public void testCorrectGDExecution() throws Exception {
-    GradientDescentExample.main(new String[]{"src/test/resources/gd_file_format.txt"});
+    GradientDescentExample.main(new String[]{"src/test/resources/gd_file_sample.txt"});
   }
 
   @Test



Mime
View raw message