File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ def run_example(
101
101
if flow_type == "RealNVP" :
102
102
epochs_num = 5
103
103
elif flow_type == "RQSpline" :
104
- epochs_num = 3
104
+ # epochs_num = 3
105
+ epochs_num = 100
105
106
106
107
# Beginning of path where plots will be saved
107
108
save_name_start = "examples/plots/" + flow_type
@@ -112,7 +113,7 @@ def run_example(
112
113
113
114
# Spline params
114
115
n_layers = 5
115
- n_bins = 5
116
+ n_bins = 16
116
117
hidden_size = [32 , 32 ]
117
118
spline_range = (- 10.0 , 10.0 )
118
119
@@ -314,6 +315,7 @@ def run_example(
314
315
315
316
plt .show ()
316
317
318
+ # Save out realisations for violin plot.
317
319
evidence_inv_summary [i_realisation , 0 ] = ev .evidence_inv
318
320
evidence_inv_summary [i_realisation , 1 ] = ev .evidence_inv_var
319
321
evidence_inv_summary [i_realisation , 2 ] = ev .evidence_inv_var_var
@@ -347,11 +349,11 @@ def run_example(
347
349
hm .logs .setup_logging ()
348
350
349
351
# Define parameters.
350
- ndim = 5
352
+ ndim = 21
351
353
nchains = 100
352
354
samples_per_chain = 5000
353
- flow_str = "RealNVP"
354
- # flow_str = "RQSpline"
355
+ # flow_str = "RealNVP"
356
+ flow_str = "RQSpline"
355
357
np .random .seed (10 ) # used for initializing covariance matrix
356
358
357
359
hm .logs .info_log ("Non-diagonal Covariance Gaussian example" )
You can’t perform that action at this time.
0 commit comments