-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
33 lines (29 loc) · 903 Bytes
/
run.py
File metadata and controls
33 lines (29 loc) · 903 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
30
31
32
33
import subprocess
methods = [
{"name": "hydra", "temporal": True},
{"name": "mr", "temporal": True},
{"name": "rocket", "temporal": True},
{"name": "inception", "temporal": True},
{"name": "xgb", "temporal": False},
{"name": "rf", "temporal": False},
{"name": "ridge", "temporal": False},
]
seeds = [2, 3, 5, 7, 11, 13]
n_folds = 5
item_data = []
for method in methods:
for seed in seeds:
for fold in range(n_folds):
process = subprocess.Popen(
[
"python",
"main.py",
"with",
f"method={method['name']}",
f"temporal={str(method['temporal'])}",
f"n_folds={str(n_folds)}",
f"fold={str(fold)}",
f"seed={str(seed)}",
]
)
process.wait()