You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by gs...@apache.org on 2009/06/21 02:43:37 UTC
svn commit: r786933 -
/lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java
Author: gsingers
Date: Sun Jun 21 00:43:36 2009
New Revision: 786933
URL: http://svn.apache.org/viewvc?rev=786933&view=rev
Log:
give the vectors names to make them easier to identify
Modified:
lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java
Modified: lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java?rev=786933&r1=786932&r2=786933&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java (original)
+++ lucene/mahout/trunk/core/src/test/java/org/apache/mahout/clustering/canopy/TestCanopyCreation.java Sun Jun 21 00:43:36 2009
@@ -73,8 +73,9 @@
private static List<Vector> getPoints(double[][] raw) {
List<Vector> points = new ArrayList<Vector>();
+ int i = 0;
for (double[] fr : raw) {
- Vector vec = new SparseVector(fr.length);
+ Vector vec = new SparseVector(String.valueOf(i++), fr.length);
vec.assign(fr);
points.add(vec);
}