[mlpack-svn] r15816 - in mlpack/conf/jenkins-conf/benchmark: . util
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Sep 20 06:42:02 EDT 2013
Author: marcus
Date: Fri Sep 20 06:42:01 2013
New Revision: 15816
Log:
Remove numpy dependency.
Modified:
mlpack/conf/jenkins-conf/benchmark/Makefile
mlpack/conf/jenkins-conf/benchmark/util/graph.py
Modified: mlpack/conf/jenkins-conf/benchmark/Makefile
==============================================================================
--- mlpack/conf/jenkins-conf/benchmark/Makefile (original)
+++ mlpack/conf/jenkins-conf/benchmark/Makefile Fri Sep 20 06:42:01 2013
@@ -102,7 +102,7 @@
@echo " syntax and then try to open files referred in the"
@echo " configuration file."
@echo " run [parameters] Perform the benchmark with the given config."
- @echo " memory [parameters] Get memory profiling information with the given config"
+ @echo " memory [parameters] Get memory profiling information with the given config."
@echo " scripts Compile the java files for the weka methods."
@echo " reports [parameters] Create the reports."
@echo " help Show this info."
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 Fri Sep 20 06:42:01 2013
@@ -17,7 +17,6 @@
from misc import *
from log import *
-import numpy as np
import matplotlib
matplotlib.use("Agg")
@@ -258,7 +257,7 @@
data += data
# Create the data for the x-axis.
- X = np.arange(len(data))
+ X = list(range(len(data)))
# Plot the line chart.
plt.plot(X, data, color=colors[0], alpha=opacity, linewidth=1.7)
@@ -324,7 +323,7 @@
memStackB = [(int(i) / 1024) + 0.0001 for i in re.findall(r"mem_stacks_B=(\d*)", content)]
# Plot the memory information.
- X = np.arange(len(memHeapExtraB))
+ X = list(range(len(memHeapExtraB)))
X = [x+0.0001 for x in X]
plt.fill_between(X, memHeapExtraB, 0, color="#109618", alpha=0.6)
plt.fill_between(X, memHeapExtraB, memHeapB, color="#DC3912", alpha=0.6)
More information about the mlpack-svn
mailing list