-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaccuracy_config.py
More file actions
29 lines (22 loc) · 794 Bytes
/
accuracy_config.py
File metadata and controls
29 lines (22 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import ConfigParser
import os
config = ConfigParser.RawConfigParser()
config.read('./config/accuracy.properties')
horizon = [
"1", "2", "4", "8", "16", "32"]
path = [
""
]
table = ["my_london", "my_spain"]
for p in path:
for h in horizon:
cfgfile = open("./config/onlinearima.properties", 'w')
config.set('Spark', 'spark.path', p)
config.set('Spark', 'spark.horizon', h)
config.set('Spark', 'spark.table', t)
config.write(cfgfile)
cfgfile.close()
os.system('spark-submit --master local[*] --driver-memory 12g '
'--properties-file "./config/accuracy.properties" '
'--class evaluation.Accuracy '
'./target/OnlineArimaTrajectory-jar-with-dependencies.jar > error_'+p)