mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdunn...@apache.org
Subject svn commit: r998336 - in /mahout/trunk/core/src/main/java/org/apache/mahout: classifier/sgd/RecordFactory.java vectors/WordValueEncoder.java
Date Fri, 17 Sep 2010 21:32:52 GMT
Author: tdunning
Date: Fri Sep 17 21:32:52 2010
New Revision: 998336

URL: http://svn.apache.org/viewvc?rev=998336&view=rev
Log:
Cosmetics

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/RecordFactory.java
    mahout/trunk/core/src/main/java/org/apache/mahout/vectors/WordValueEncoder.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/RecordFactory.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/RecordFactory.java?rev=998336&r1=998335&r2=998336&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/RecordFactory.java (original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/classifier/sgd/RecordFactory.java Fri
Sep 17 21:32:52 2010
@@ -24,8 +24,7 @@ import java.util.Map;
 import java.util.Set;
 
 /**
- * Created by IntelliJ IDEA. User: tdunning Date: Jun 14, 2010 Time: 8:35:09 AM To change
this
- * template use File | Settings | File Templates.
+ * A record factor understands how to convert a line of data into fields and then into a
vector.
  */
 public interface RecordFactory {
   void defineTargetCategories(List<String> values);

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/vectors/WordValueEncoder.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/vectors/WordValueEncoder.java?rev=998336&r1=998335&r2=998336&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/vectors/WordValueEncoder.java (original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/vectors/WordValueEncoder.java Fri Sep
17 21:32:52 2010
@@ -43,7 +43,7 @@ public abstract class WordValueEncoder e
   public void addToVector(byte[] originalForm, double w, Vector data) {
     int probes = getProbes();
     String name = getName();
-    double weight = getWeight(originalForm,w);
+    double weight = getWeight(originalForm, w);
     for (int i = 0; i < probes; i++) {
       int n = hashForProbe(originalForm, data.size(), name, i);
       if(isTraceEnabled()){



Mime
View raw message