File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -253,11 +253,6 @@ def accept_reject_sample(
253
253
254
254
# Progress bar can be skipped, e.g. when sampling after each round just for
255
255
# logging.
256
- pbar = tqdm (
257
- disable = not show_progress_bars ,
258
- total = num_samples ,
259
- desc = f"Drawing { num_samples } posterior samples" ,
260
- )
261
256
if proposal_sampling_kwargs is None :
262
257
proposal_sampling_kwargs = {}
263
258
@@ -269,6 +264,12 @@ def accept_reject_sample(
269
264
if "condition" in proposal_sampling_kwargs :
270
265
num_xos = proposal_sampling_kwargs ["condition" ].shape [0 ]
271
266
267
+ pbar = tqdm (
268
+ disable = not show_progress_bars ,
269
+ total = num_samples ,
270
+ desc = f"Drawing { num_samples } posterior samples for { num_xos } observations" ,
271
+ )
272
+
272
273
accepted = [[] for _ in range (num_xos )]
273
274
acceptance_rate = torch .full ((num_xos ,), float ("Nan" ))
274
275
leakage_warning_raised = False
You can’t perform that action at this time.
0 commit comments