mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r1098748 - in /mahout/trunk/core/src: main/java/org/apache/mahout/clustering/canopy/CanopyReducer.java test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java
Date Mon, 02 May 2011 19:14:10 GMT
Author: srowen
Date: Mon May  2 19:14:09 2011
New Revision: 1098748

URL: http://svn.apache.org/viewvc?rev=1098748&view=rev
Log:
Fix overlooked compile error from last change

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/CanopyReducer.java
    mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/CanopyReducer.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/CanopyReducer.java?rev=1098748&r1=1098747&r2=1098748&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/CanopyReducer.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/clustering/canopy/CanopyReducer.java
Mon May  2 19:14:09 2011
@@ -32,6 +32,10 @@ public class CanopyReducer extends Reduc
 
   private CanopyClusterer canopyClusterer;
 
+  CanopyClusterer getCanopyClusterer() {
+    return canopyClusterer;
+  }
+
   @Override
   protected void reduce(Text arg0, Iterable<VectorWritable> values,
       Context context) throws IOException, InterruptedException {

Modified: mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java?rev=1098748&r1=1098747&r2=1098748&view=diff
==============================================================================
--- mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java
(original)
+++ mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java
Mon May  2 19:14:09 2011
@@ -646,7 +646,7 @@ public final class TestCanopyCreation ex
     Reducer<Text, VectorWritable, Text, Canopy>.Context context = DummyRecordWriter
         .build(reducer, conf, writer, Text.class, VectorWritable.class);
     reducer.setup(context);
-    assertEquals(1.1, reducer.canopyClusterer.getT1(), EPSILON);
-    assertEquals(0.1, reducer.canopyClusterer.getT2(), EPSILON);
+    assertEquals(1.1, reducer.getCanopyClusterer().getT1(), EPSILON);
+    assertEquals(0.1, reducer.getCanopyClusterer().getT2(), EPSILON);
   }
 }



Mime
View raw message