-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
43 lines (38 loc) · 1001 Bytes
/
run.py
File metadata and controls
43 lines (38 loc) · 1001 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
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
import os
import platform
## Operating System ##
system = platform.system()
if system == 'Windows':
interpreter = 'python'
else:
interpreter = 'python3'
'''
## Config ##
with open("config/test_example_conf.json", 'r') as json_conf:
configuration = json.load(json_conf)
'''
## Run flask app ##
os.system('{0} FlaskApp/flask_app.py'.format(interpreter))
'''
## Run main file ##
os.system('{0} main.py {1} {2} {3} {4} {5} {6} {7} "{8}" {9} {10} {11} {12} {13} {14}'.format(
interpreter,
configuration["file_name"],
configuration["data_path"],
configuration["separate"],
configuration["how_cat"],
configuration["how_num"],
configuration["how_ft_sel"],
configuration["mode"],
configuration["params"],
configuration["alg"],
configuration["how_val"],
configuration["train_path"],
configuration["test_path"],
configuration["target_label"],
configuration["drop_cols"]
))
'''