-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
118 lines (96 loc) · 3.41 KB
/
config.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
inputs = {
"target": "BC",
"calculate_interval": False,
"n_random_trials": 10,
}
structure = {
"black_list" : [
('Age', 'Sex'),
('BMI', 'Sex'),
('PA', 'Sex'),
('Alcohol', 'Sex'),
('Smoking', 'Sex'),
('Diabetes', 'Sex'),
('Obesity', 'Sex'),
('Hypertension', 'Sex'),
('Hyperchol.', 'Sex'),
('BC', 'Sex'),
('SES', 'Sex'),
('Sex', 'Age'),
('BMI', 'Age'),
('PA', 'Age'),
('Alcohol', 'Age'),
('Smoking', 'Age'),
('Obesity', 'Sex'),
('Diabetes', 'Age'),
('Hypertension', 'Age'),
('Hyperchol.', 'Age'),
('BC', 'Age'),
('SES', 'Age'),
('BMI', 'SES'),
('PA', 'SES'),
('Alcohol', 'SES'),
('Smoking', 'SES'),
('Obesity', 'Sex'),
('Diabetes', 'SES'),
('Hypertension', 'SES'),
('Hyperchol.', 'SES'),
('BC', 'SES'),
],
"fixed_edges" : [
('Sex', 'SES'),
('Sex', 'BC'),
('Age', 'BC'),
('Age', 'Diabetes'),
('Age', 'Smoking'),
('Age', 'Hypertension'),
('Age', 'BMI'),
('Age', 'Obesity'),
('Age', 'SES'),
('Age', 'PA'),
('BMI', 'Diabetes'),
('BMI', 'Hyperchol.'),
('BMI', 'Hypertension'),
('BMI', 'Obesity'),
('Alcohol', 'BC'),
('Alcohol', 'Hypertension'),
('Alcohol', 'Hyperchol.'),
('Smoking', 'BC'),
('Smoking', 'Hyperchol.'),
('Smoking', 'Hypertension'),
('PA', 'Diabetes'),
('PA', 'Hyperchol.'),
('PA', 'Hypertension'),
('PA', 'BMI'),
('PA', 'Obesity'),
('Diabetes', 'BC'),
('Diabetes', 'Hypertension'),
('Hypertension', 'BC'),
('Hyperchol.', 'BC'),
('Obesity', 'Diabetes'),
('Obesity', 'Hypertension'),
('Obesity', 'BC'),
('SES', 'PA'),
]
}
node_color = {'Age': 0.3,
'Sex': 0.3,
'Alcohol': 0.1,
'Smoking': 0.1,
'PA': 0.1,
'BMI': 0.1,
'Diabetes': 0.2,
'Hypertension': 0.2,
'Hyperchol.': 0.2,
'Obesity': 0.2,
'SES': 0.3,
'BC': 0.4}
pointwise_risk_mapping = {
"col_var": "Age",
"row_var": "BMI"
}
interval_risk_mapping = {
"col_var": "Age",
"row_var": "BMI"
}
interval_path = {'path': "test14march/"}