[mlpack-svn] r15710 - mlpack/conf/jenkins-conf/benchmark/methods/weka/src

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Sep 4 07:05:35 EDT 2013


Author: marcus
Date: Wed Sep  4 07:05:35 2013
New Revision: 15710

Log:
Fix bug which breaks the weka pca script with the scale option.

Modified:
   mlpack/conf/jenkins-conf/benchmark/methods/weka/src/PCA.java

Modified: mlpack/conf/jenkins-conf/benchmark/methods/weka/src/PCA.java
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/methods/weka/src/PCA.java	(original)
+++ mlpack/conf/jenkins-conf/benchmark/methods/weka/src/PCA.java	Wed Sep  4 07:05:35 2013
@@ -76,8 +76,8 @@
       pcaEvaluator.setMaximumAttributeNames(-1);
 
       // Scaled X such that the variance of each feature is 1.
-      String scale = Utils.getOption('s', args);
-      if (scale.length() == 0) {
+      boolean scale = Utils.getFlag('s', args);
+      if (scale) {
         pcaEvaluator.setCenterData(true);
       } else {
         pcaEvaluator.setCenterData(false);



More information about the mlpack-svn mailing list