Skip to content
Snippets Groups Projects
Commit f5f34325 authored by Hashim Sharif's avatar Hashim Sharif
Browse files

merging

parents 3b11b9d8 a16ce992
No related branches found
No related tags found
No related merge requests found
...@@ -196,7 +196,7 @@ def loadConfigsFromDir(result_dir, baseline_accuracy): ...@@ -196,7 +196,7 @@ def loadConfigsFromDir(result_dir, baseline_accuracy):
for fname in file_names: for fname in file_names:
if not skipFile(fname): if not skipFile(fname):
fpath = result_dir + fname fpath = result_dir + '/' + fname
config = Config() config = Config()
f = open(fpath, "r") f = open(fpath, "r")
......
...@@ -14,6 +14,7 @@ def genScatterPlot(accuracy_losses, speedups, file_path): ...@@ -14,6 +14,7 @@ def genScatterPlot(accuracy_losses, speedups, file_path):
plt.xlabel("accuracy_loss") plt.xlabel("accuracy_loss")
plt.ylabel("speedup") plt.ylabel("speedup")
plt.savefig(file_path) plt.savefig(file_path)
plt.close()
......
...@@ -200,8 +200,8 @@ def dumpParetoConfigsToDir(input_dir, output_dir, gold_accuracy): ...@@ -200,8 +200,8 @@ def dumpParetoConfigsToDir(input_dir, output_dir, gold_accuracy):
print ("len(ASC) = ", len(ASC)) print ("len(ASC) = ", len(ASC))
for conf in ASC: for conf in ASC:
src_path = input_dir + conf.name src_path = input_dir + '/' + conf.name
dst_path = output_dir + conf.name dst_path = output_dir + '/' + conf.name
shutil.copy(src_path, dst_path) shutil.copy(src_path, dst_path)
return ASC return ASC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment