mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject svn commit: r1345978 - /mahout/trunk/core/src/main/java/org/apache/mahout/clustering/spectral/kmeans/SpectralKMeansDriver.java
Date Mon, 04 Jun 2012 14:20:49 GMT
Author: ssc
Date: Mon Jun  4 14:20:49 2012
New Revision: 1345978

URL: http://svn.apache.org/viewvc?rev=1345978&view=rev
Log:
MAHOUT-986 OutOfMemoryError in LanczosState by way of SpectralKMeans

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/clustering/spectral/kmeans/SpectralKMeansDriver.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/clustering/spectral/kmeans/SpectralKMeansDriver.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/clustering/spectral/kmeans/SpectralKMeansDriver.java?rev=1345978&r1=1345977&r2=1345978&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/clustering/spectral/kmeans/SpectralKMeansDriver.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/clustering/spectral/kmeans/SpectralKMeansDriver.java
Mon Jun  4 14:20:49 2012
@@ -143,7 +143,7 @@ public class SpectralKMeansDriver extend
     // unnecessary vectors later
     int overshoot = (int) ((double) clusters * OVERSHOOT_MULTIPLIER);
     DistributedLanczosSolver solver = new DistributedLanczosSolver();
-    LanczosState state = new LanczosState(L, numDims, solver.getInitialVector(L));
+    LanczosState state = new LanczosState(L, clusters, solver.getInitialVector(L));
     Path lanczosSeqFiles = new Path(outputCalc, "eigenvectors-" + (System.nanoTime() &
0xFF));
     solver.runJob(conf,
                   state,



Mime
View raw message