-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
73 lines (46 loc) · 1.59 KB
/
main.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import Compare as compare
import multiprocessing as mp
def sequence(input_file):
c = compare.Compare(input_file)
c.split()
c.plot_data()
c.post_split_cleaning()
c.do_all_transformations()
c.plot_save_all_corr_features(corr_type="pearson")
c.tune_train_all_models()
c.calculate_error()
c.save_error()
c.plot_performances()
c.calculate_save_rmse()
c.error_hist()
c.save_test_performance_df()
c.note_important_features()
if __name__ == '__main__':
pool = mp.Pool(mp.cpu_count())
property_inputs = ["cn_input.yaml",
# "fp_c_input.yaml",
# "mp_c_input.yaml",
# "MW_input.yaml",
# "HC_input.yaml"
]
pool.map(sequence, property_inputs)
pool.close()
# pool = mp.Pool(mp.cpu_count())
# property_inputs = ["cn_input_more.yaml",
# "fp_c_input_more.yaml",
# "mp_c_input_more.yaml",
# "MW_input_more.yaml",
# "HC_input_more.yaml"
# ]
# pool.map(sequence, property_inputs)
# pool.close()
# input_file = "cn_input.yaml"
# sequence(input_file)
# input_file = "fp_c_input.yaml"
# sequence(input_file)
# input_file = "mp_c_input.yaml"
# sequence(input_file)
# input_file = "MW_input.yaml"
# sequence(input_file)
# input_file = "HC_input.yaml"
# sequence(input_file)