[mlpack-svn] r15711 - mlpack/conf/jenkins-conf/benchmark/util

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


Author: marcus
Date: Wed Sep  4 07:55:06 2013
New Revision: 15711

Log:
The bar displays now the correct percent.

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

Modified: mlpack/conf/jenkins-conf/benchmark/util/graph.py
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/util/graph.py	(original)
+++ mlpack/conf/jenkins-conf/benchmark/util/graph.py	Wed Sep  4 07:55:06 2013
@@ -87,7 +87,6 @@
   failure = 0
 
   # Use this data structures to generate the timing table and the progress bar.
-  bestTiming = {}
   timingData = {}
 
   # Use this variable to get use the data for the right library.
@@ -116,7 +115,6 @@
         continue
 
       totalTime += time
-      bestTiming[dataset] = (time, libraries[l])
     l += 1
 
   timingData = collections.OrderedDict(sorted(timingData.items()))
@@ -183,9 +181,15 @@
 
   # Count the time in which bestlib is the best.
   bestLibCount = 0
-  for dataset, data in bestTiming.items():
-    if data[1] == bestlib:
-      bestLibCount += 1
+  try:
+    bestLibIndex = libraries.index(bestlib)
+  except ValueError:
+    pass
+  else:
+    for dataset, results in timingData.items():
+      results = [v if isFloat(v) else float('Inf') for v in results]
+      if bestLibIndex == results.index(min(results)):
+        bestLibCount += 1
   
   return (len(timingData), totalTime, failure, timeouts, bestLibCount, timingData)
 



More information about the mlpack-svn mailing list