[mlpack-svn] r15404 - mlpack/conf/jenkins-conf/benchmark/methods/matlab
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Jul 3 15:28:50 EDT 2013
Author: marcus
Date: Wed Jul 3 15:28:50 2013
New Revision: 15404
Log:
Use PCA instead of pca in the benchmark script.
Modified:
mlpack/conf/jenkins-conf/benchmark/methods/matlab/pca.py
Modified: mlpack/conf/jenkins-conf/benchmark/methods/matlab/pca.py
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/methods/matlab/pca.py (original)
+++ mlpack/conf/jenkins-conf/benchmark/methods/matlab/pca.py Wed Jul 3 15:28:50 2013
@@ -59,15 +59,14 @@
inputCmd = "-i " + self.dataset + " " + options
# Split the command using shell-like syntax.
- cmd = shlex.split(self.path + "matlab -nodisplay -nosplash -r \"try, pca('"
+ cmd = shlex.split(self.path + "matlab -nodisplay -nosplash -r \"try, PCA('"
+ inputCmd + "'), catch, exit(1), end, exit(0)\"")
# Run command with the nessecary arguments and return its output as a byte
# string. We have untrusted input so we disables all shell based features.
try:
s = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=False)
- except Exception, e:
- print e
+ except Exception:
Log.Fatal("Could not execute command: " + str(cmd))
return -1
More information about the mlpack-svn
mailing list