Skip to content

Commit a36f488

Browse files
Change params back to suit 2D example.
1 parent fbd44fb commit a36f488

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/rosenbrock.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -166,14 +166,14 @@ def run_example(
166166
epochs_num = 8
167167
elif flow_type == "RQSpline":
168168
# epochs_num = 5
169-
epochs_num = 50
169+
epochs_num = 10
170170

171171
temperature = 0.8
172172
training_proportion = 0.5
173173
standardize = True
174174
# Spline params
175-
n_layers = 5
176-
n_bins = 5
175+
n_layers = 3
176+
n_bins = 8
177177
hidden_size = [32, 32]
178178
spline_range = (-10.0, 10.0)
179179

@@ -205,7 +205,7 @@ def run_example(
205205
"""
206206
Set up and run multiple simulations
207207
"""
208-
n_realisations = 100
208+
n_realisations = 50
209209
ln_evidence_inv_summary = np.zeros((n_realisations, 5))
210210
for i_realisation in range(n_realisations):
211211
if n_realisations > 1:
@@ -489,7 +489,7 @@ def run_example(
489489

490490
# flow_str = "RealNVP"
491491
flow_str = "RQSpline"
492-
np.random.seed(20)
492+
np.random.seed(2)
493493

494494
hm.logs.info_log("Rosenbrock example")
495495

0 commit comments

Comments
 (0)