[mlpack-svn] r15494 - mlpack/conf/jenkins-conf/benchmark/methods/shogun

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Jul 18 12:01:46 EDT 2013


Author: marcus
Date: Thu Jul 18 12:01:45 2013
New Revision: 15494

Log:
Add spaces between commands.

Modified:
   mlpack/conf/jenkins-conf/benchmark/methods/shogun/kmeans.py

Modified: mlpack/conf/jenkins-conf/benchmark/methods/shogun/kmeans.py
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/methods/shogun/kmeans.py	(original)
+++ mlpack/conf/jenkins-conf/benchmark/methods/shogun/kmeans.py	Thu Jul 18 12:01:45 2013
@@ -19,6 +19,11 @@
 from log import *
 from timer import *
 
+import shlex
+import subprocess
+import re
+import collections
+
 '''
 This class implements the K-Means Clustering benchmark.
 '''
@@ -73,8 +78,9 @@
 
       # 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.
-      cmd = shlex.split(self.path + "methods/shogun/kmeans " + self.dataset[0] 
-          + " " + self.dataset[1] + clusters.group(1) + str(maxIterations))
+      cmd = shlex.split("methods/shogun/kmeans " + self.dataset[0] 
+          + " " + self.dataset[1] + " " + clusters.group(1) + " " 
+          + str(maxIterations))
       try:
         s = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=False) 
       except Exception, e:



More information about the mlpack-svn mailing list