mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r1180697 - /mahout/trunk/core/src/main/java/org/apache/mahout/classifier/naivebayes/test/TestNaiveBayesDriver.java
Date Sun, 09 Oct 2011 19:22:55 GMT
Author: gsingers
Date: Sun Oct  9 19:22:55 2011
New Revision: 1180697

URL: http://svn.apache.org/viewvc?rev=1180697&view=rev
Log:
MAHOUT-798: should check min val

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/classifier/naivebayes/test/TestNaiveBayesDriver.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/classifier/naivebayes/test/TestNaiveBayesDriver.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/naivebayes/test/TestNaiveBayesDriver.java?rev=1180697&r1=1180696&r2=1180697&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/classifier/naivebayes/test/TestNaiveBayesDriver.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/classifier/naivebayes/test/TestNaiveBayesDriver.java
Sun Oct  9 19:22:55 2011
@@ -104,7 +104,7 @@ public class TestNaiveBayesDriver extend
             bestIdx = element.index();
           }
         }
-        if (bestIdx != Integer.MAX_VALUE) {
+        if (bestIdx != Integer.MIN_VALUE) {
           ClassifierResult classifierResult = new ClassifierResult(labelMap.get(bestIdx),
bestScore);
           analyzer.addInstance(pair.getFirst().toString(), classifierResult);
         }



Mime
View raw message