forked from lacic/session-knn-ae
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerate_folders.py
26 lines (22 loc) · 1.08 KB
/
generate_folders.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
25
26
import os
import sys
def generate_folder_structure(dataset):
print("Generating Folders for: " + dataset)
root = "data"
os.makedirs(root + "/" + dataset + "/raw")
os.makedirs(root + "/" + dataset + "/interim/infer")
os.makedirs(root + "/" + dataset + "/interim/models")
os.makedirs(root + "/" + dataset + "/interim/predict/base")
os.makedirs(root + "/" + dataset + "/interim/predict/hyperparam")
os.makedirs(root + "/" + dataset + "/interim/processed/eval/all")
os.makedirs(root + "/" + dataset + "/interim/processed/eval/next")
os.makedirs(root + "/" + dataset + "/interim/processed/eval/base/all")
os.makedirs(root + "/" + dataset + "/interim/processed/eval/base/next")
os.makedirs(root + "/" + dataset + "/interim/processed/eval/hyperparam/all")
os.makedirs(root + "/" + dataset + "/interim/processed/eval/hyperparam/next")
if __name__ == "__main__":
if len(sys.argv) == 1:
print("Usage: python generate_folders.py dataset1 [dataset2 ...]")
else:
for dataset in sys.argv[1:]:
generate_folder_structure(dataset)