mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdunn...@apache.org
Subject svn commit: r998288 - /mahout/trunk/core/src/main/java/org/apache/mahout/vectors/ContinuousValueEncoder.java
Date Fri, 17 Sep 2010 19:51:46 GMT
Author: tdunning
Date: Fri Sep 17 19:51:46 2010
New Revision: 998288

URL: http://svn.apache.org/viewvc?rev=998288&view=rev
Log:
Fixed null trace in ContinuousValueEncoder

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/vectors/ContinuousValueEncoder.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/vectors/ContinuousValueEncoder.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/vectors/ContinuousValueEncoder.java?rev=998288&r1=998287&r2=998288&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/vectors/ContinuousValueEncoder.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/vectors/ContinuousValueEncoder.java
Fri Sep 17 19:51:46 2010
@@ -17,6 +17,7 @@
 
 package org.apache.mahout.vectors;
 
+import com.google.common.base.Charsets;
 import org.apache.mahout.math.Vector;
 
 /**
@@ -41,7 +42,7 @@ public class ContinuousValueEncoder exte
     for (int i = 0; i < probes; i++) {
       int n = hashForProbe(originalForm, data.size(), name, i);
       if(isTraceEnabled()){
-        trace((byte[]) null, n);        
+        trace(name.getBytes(Charsets.UTF_8), n);        
       }
       data.set(n, data.get(n) + getWeight(originalForm,weight));
     }



Mime
View raw message