mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r1059709 - /mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TestClassifier.java
Date Sun, 16 Jan 2011 23:39:07 GMT
Author: srowen
Date: Sun Jan 16 23:39:07 2011
New Revision: 1059709

URL: http://svn.apache.org/viewvc?rev=1059709&view=rev
Log:
MAHOUT-561

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TestClassifier.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TestClassifier.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TestClassifier.java?rev=1059709&r1=1059708&r2=1059709&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TestClassifier.java
(original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/classifier/bayes/TestClassifier.java
Sun Jan 16 23:39:07 2011
@@ -139,13 +139,13 @@ public final class TestClassifier {
       }
 
       String classifierType = "bayes";
-      if (cmdLine.hasOption(classifierType)) {
+      if (cmdLine.hasOption(typeOpt)) {
         classifierType = (String) cmdLine.getValue(typeOpt);
       }
 
       String dataSource = "hdfs";
-      if (cmdLine.hasOption(dataSource)) {
-        dataSource = (String) cmdLine.getValue(dataSource);
+      if (cmdLine.hasOption(dataSourceOpt)) {
+        dataSource = (String) cmdLine.getValue(dataSourceOpt);
       }
 
       String defaultCat = "unknown";



Mime
View raw message