Skip to content

Commit 579a37d

Browse files
New features (#136)
Three major features: The ability to incorporate background knowledge in terms of edge Constraints. The ability to specify multiple benchmark setups in the same config file. A new module gcastle_dag, for generating DAGs using the gCastle package
1 parent d1acc55 commit 579a37d

File tree

268 files changed

+11831
-8272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+11831
-8272
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ causal-cmd.log
1111
.java/
1212
.cache/
1313
__pycache__
14-
workflow/schemas/tmp.config.schema.json
14+
workflow/schemas/tmp.config.schema.json
15+
.RData
16+
.Rhistory

VERSION

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
2.8.0
2-
1+
2.9.0

config/chordal_algos.json

+115-69
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,97 @@
11
{
2-
"benchmark_setup": {
3-
"data": [
4-
{
5-
"data_id": "example1",
6-
"graph_id": "AR1-5",
7-
"parameters_id": "intra-class",
8-
"seed_range": [1, 1]
9-
}
10-
],
11-
"evaluation": {
12-
"benchmarks": {
13-
"filename_prefix": "mcmc_chordal/",
14-
"show_seed": false,
15-
"errorbar": true,
16-
"errorbarh": false,
17-
"scatter": true,
18-
"path": true,
19-
"text": false,
20-
"ids": ["gg99", "trilearn"]
21-
},
22-
"graph_true_plots": true,
23-
"graph_true_stats": false,
24-
"ggally_ggpairs": false,
25-
"graph_plots": ["gg99"],
26-
"mcmc_traj_plots": [
27-
{
28-
"id": "gg99",
29-
"burn_in": 0.5,
30-
"thinning": 1000,
31-
"functional": ["score", "size"],
32-
"active": true
33-
},
2+
"benchmark_setup": [
3+
{
4+
"data": [
345
{
35-
"id": "trilearn",
36-
"burn_in": 0.5,
37-
"thinning": 1,
38-
"functional": ["score", "size"],
39-
"active": true
6+
"data_id": "example1",
7+
"graph_id": "AR1-5",
8+
"parameters_id": "intra-class",
9+
"seed_range": [
10+
1,
11+
1
12+
]
4013
}
4114
],
42-
"mcmc_heatmaps": [
43-
{
44-
"id": "gg99",
45-
"burn_in": 0.5,
46-
"active": true
15+
"evaluation": {
16+
"benchmarks": {
17+
"filename_prefix": "mcmc_chordal/",
18+
"show_seed": false,
19+
"errorbar": true,
20+
"errorbarh": false,
21+
"scatter": true,
22+
"path": true,
23+
"text": false,
24+
"ids": [
25+
"gg99",
26+
"trilearn"
27+
]
4728
},
48-
{
49-
"id": "trilearn",
50-
"burn_in": 0.5,
51-
"active": true
52-
}
53-
],
54-
"mcmc_autocorr_plots": [
55-
{
56-
"id": "gg99",
57-
"burn_in": 0.5,
58-
"thinning": 1000,
59-
"lags": 50,
60-
"functional": ["score", "size"],
61-
"active": true
62-
}
63-
]
29+
"graph_true_plots": true,
30+
"graph_true_stats": false,
31+
"ggally_ggpairs": false,
32+
"graph_plots": [
33+
"gg99"
34+
],
35+
"mcmc_traj_plots": [
36+
{
37+
"id": "gg99",
38+
"burn_in": 0.5,
39+
"thinning": 1000,
40+
"functional": [
41+
"score",
42+
"size"
43+
],
44+
"active": true
45+
},
46+
{
47+
"id": "trilearn",
48+
"burn_in": 0.5,
49+
"thinning": 1,
50+
"functional": [
51+
"score",
52+
"size"
53+
],
54+
"active": true
55+
}
56+
],
57+
"mcmc_heatmaps": [
58+
{
59+
"id": "gg99",
60+
"burn_in": 0.5,
61+
"active": true
62+
},
63+
{
64+
"id": "trilearn",
65+
"burn_in": 0.5,
66+
"active": true
67+
}
68+
],
69+
"mcmc_autocorr_plots": [
70+
{
71+
"id": "gg99",
72+
"burn_in": 0.5,
73+
"thinning": 1000,
74+
"lags": 50,
75+
"functional": [
76+
"score",
77+
"size"
78+
],
79+
"active": true
80+
}
81+
]
82+
},
83+
"title": "chordal_algos"
6484
}
65-
},
85+
],
6686
"resources": {
6787
"data": {
6888
"iid": [
6989
{
7090
"id": "example1",
7191
"standardized": false,
72-
"n": [200]
92+
"n": [
93+
200
94+
]
7395
}
7496
]
7597
},
@@ -102,7 +124,7 @@
102124
{
103125
"id": "gwi",
104126
"b": 3,
105-
"threshold_conv": 1e-8
127+
"threshold_conv": 1e-08
106128
}
107129
]
108130
},
@@ -113,10 +135,20 @@
113135
"burnin_frac": 0.5,
114136
"mcmc_estimator": "threshold",
115137
"timeout": null,
116-
"threshold": [0.2, 0.5, 0.9],
117-
"mcmc_seed": [1, 2, 3],
138+
"threshold": [
139+
0.2,
140+
0.5,
141+
0.9
142+
],
143+
"mcmc_seed": [
144+
1,
145+
2,
146+
3
147+
],
118148
"num_samples": 1000000,
119-
"sampler": [1],
149+
"sampler": [
150+
1
151+
],
120152
"edge_penalty": 1.0,
121153
"size_maxclique": 10000
122154
}
@@ -125,9 +157,15 @@
125157
{
126158
"id": "parallelDG_test",
127159
"M": 10000,
128-
"R": [100, 200],
160+
"R": [
161+
100,
162+
200
163+
],
129164
"datatype": "continuous",
130-
"mcmc_seed": [1, 2],
165+
"mcmc_seed": [
166+
1,
167+
2
168+
],
131169
"graph_prior": "uniform",
132170
"graph_prior_param": 1.0,
133171
"graph_prior_param1": 3.0,
@@ -149,13 +187,21 @@
149187
"n_particles": 20,
150188
"M": 2000,
151189
"pseudo_obs": 1,
152-
"mcmc_seed": [1, 2, 3],
190+
"mcmc_seed": [
191+
1,
192+
2,
193+
3
194+
],
153195
"mcmc_estimator": "threshold",
154-
"threshold": [0.2, 0.5, 0.9],
196+
"threshold": [
197+
0.2,
198+
0.5,
199+
0.9
200+
],
155201
"burnin_frac": 0.5,
156202
"timeout": null
157203
}
158204
]
159205
}
160206
}
161-
}
207+
}

0 commit comments

Comments
 (0)