-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautoRun.py
24 lines (23 loc) · 818 Bytes
/
autoRun.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
import sys
def autoRun():
bashCommand = "python binarisationModule.py"
os.system(bashCommand)
for i in range(0,6):
bashCommand = "python supportSetMinimization.py " + str(sys.argv[1]) + " " + str(i * 0.05 + 0.5)
os.system(bashCommand)
for j in range(0,8):
f = open("accuracy","r+")
accuracy = f.read()
f.seek(0)
if int(sys.argv[1]) == 1:
accuracy = accuracy + "Correlation = " + str(i * 0.05 + 0.1) + " MinSup = " + str(j * 0.05 + 0.7) + " "
else:
accuracy = accuracy + "Correlation = " + str(i * 0.05 + 0.6) + " MinSup = " + str(j * 0.05 + 0.7) + " "
f.write(accuracy)
f.close()
bashCommand = "python patternGenerationModule.py " + str(j * 0.05 + 0.7)
os.system(bashCommand)
bashCommand = "sh test.sh " + str(sys.argv[1])
os.system(bashCommand)
autoRun()