-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
125 lines (102 loc) · 3.62 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
119
120
121
122
123
124
125
inputs = {
"target": "CRC",
"calculate_interval": False,
"n_random_trials": 10,
"classification": False,
}
structure = {
"black_list" : [
('Age', 'Sex'),
('BMI', 'Sex'),
('PA', 'Sex'),
('Alcohol', 'Sex'),
('Smoking', 'Sex'),
('SD', 'Sex'),
('Diabetes', 'Sex'),
('Hypertension', 'Sex'),
('Hyperchol.', 'Sex'),
('Depression', 'Sex'),
('Anxiety', 'Sex'),
('CRC', 'Sex'),
('SES', 'Sex'),
('Sex', 'Age'),
('BMI', 'Age'),
('PA', 'Age'),
('Alcohol', 'Age'),
('Smoking', 'Age'),
('SD', 'Age'),
('Diabetes', 'Age'),
('Hypertension', 'Age'),
('Hyperchol.', 'Age'),
('Depression', 'Age'),
('Anxiety', 'Age'),
('CRC', 'Age'),
('SES', 'Age'),
('BMI', 'SES'),
('PA', 'SES'),
('Alcohol', 'SES'),
('Smoking', 'SES'),
('SD', 'SES'),
('Diabetes', 'SES'),
('Hypertension', 'SES'),
('Hyperchol.', 'SES'),
('Depression', 'SES'),
('Anxiety', 'SES'),
('CRC', 'SES'),
],
"fixed_edges" : [
('Sex', 'Anxiety'),
('Sex', 'Depression'),
('Sex', 'CRC'),
('Age', 'CRC'),
('Age', 'Diabetes'),
('Age', 'SD'),
('Age', 'Smoking'),
('Age', 'Hypertension'),
('Age', 'BMI'),
('BMI', 'Diabetes'),
('BMI', 'Hyperchol.'),
('BMI', 'Hypertension'),
('Alcohol', 'CRC'),
('Alcohol', 'Hypertension'),
('Alcohol', 'Hyperchol.'),
('Smoking', 'CRC'),
('Smoking', 'Hyperchol.'),
('Smoking', 'Hypertension'),
('PA', 'Diabetes'),
('PA', 'Hyperchol.'),
('PA', 'Hypertension'),
('PA', 'BMI'),
('Diabetes', 'CRC'),
('Diabetes', 'Hypertension'),
('Hypertension', 'CRC'),
('Hyperchol.', 'CRC'),
('SD', 'PA'),
('SD', 'Anxiety'),
('Anxiety', 'Hypertension'),
('SES', 'PA'),
]
}
node_color = {'Age': 0.3,
'Sex': 0.3,
'BMI': 0.1,
'Alcohol': 0.1,
'Smoking': 0.1,
'PA': 0.1,
'Depression': 0.1,
'Anxiety': 0.1,
'Diabetes': 0.2,
'Hypertension': 0.2,
'Hyperchol.': 0.2,
'SD': 0.1,
'SES': 0.3,
'CRC': 0.4}
pointwise_risk_mapping = {
"col_var": "Age",
"row_var": "PA"
}
interval_risk_mapping = {
"col_var": "Age",
"row_var": "PA"
}
interval_path = {'path': "prueba22nov/"}