[mlpack-svn] r15357 - mlpack/conf/jenkins-conf/benchmark

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Jun 28 08:38:46 EDT 2013


Author: marcus
Date: Fri Jun 28 08:38:45 2013
New Revision: 15357

Log:
Clean the dataset name if necessary and add some comments.

Modified:
   mlpack/conf/jenkins-conf/benchmark/benchmark.py

Modified: mlpack/conf/jenkins-conf/benchmark/benchmark.py
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/benchmark.py	(original)
+++ mlpack/conf/jenkins-conf/benchmark/benchmark.py	Fri Jun 28 08:38:45 2013
@@ -25,14 +25,21 @@
 
 from optparse import OptionParser
 
+'''
+Show system informations. Are there no data available, the value is 'N/A'.
+'''
 def SystemInformation():
-	# Show system informations.
+	
 	Log.Info('CPU Model: ' + SystemInfo.GetCPUModel())
 	Log.Info('Distribution: ' + SystemInfo.GetDistribution())
 	Log.Info('Platform: ' + SystemInfo.GetPlatform())
 	Log.Info('Memory: ' + SystemInfo.GetMemory())
 	Log.Info('CPU Cores: ' + SystemInfo.GetCPUCores())
 
+'''
+Start the main benchmark routine. The method shows some DEBUG information and 
+prints a table with the runtime information.
+'''
 def Main():
 	# Read Config.
 	config = Parser('config.yaml', verbose=False)
@@ -72,7 +79,10 @@
 						if  not isinstance(files, basestring):
 							row[0] = os.path.splitext(os.path.basename(files[0]))[0]	
 						else:
-							row[0] = os.path.splitext(os.path.basename(files))[0]	
+							row[0] = os.path.splitext(os.path.basename(files))[0]
+
+						if row[0].count('_') != 0:
+							row[0] = row[0].split("_")[0]
 
 						Log.Info('Dataset: ' + row[0])
 



More information about the mlpack-svn mailing list