Skip to content

Commit a079153

Browse files
Inconsistent kwarg progressbar or progress_bar (#6389)
* Changed 'progress_bar' in jax.py to 'progressbar' for consistency; the name 'progress_bar' is used by fastprogress. * Fixed kwarg in jax.py where MCMC is called back to progress_bar as necessary. The rest of jax.py is still using progressbar over progress_bar for overall project consistency. Co-authored-by: Michael Osthege <[email protected]>
1 parent cedf0d5 commit a079153

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymc/sampling/jax.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ def sample_numpyro_nuts(
506506
initvals: Optional[Union[StartDict, Sequence[Optional[StartDict]]]] = None,
507507
model: Optional[Model] = None,
508508
var_names: Optional[Sequence[str]] = None,
509-
progress_bar: bool = True,
509+
progressbar: bool = True,
510510
keep_untransformed: bool = False,
511511
chain_method: str = "parallel",
512512
postprocessing_backend: Optional[str] = None,
@@ -544,7 +544,7 @@ def sample_numpyro_nuts(
544544
var_names : sequence of str, optional
545545
Names of variables for which to compute the posterior samples. Defaults to all
546546
variables in the posterior.
547-
progress_bar : bool, default True
547+
progressbar : bool, default True
548548
Whether or not to display a progress bar in the command line. The bar shows the
549549
percentage of completion, the sampling speed in samples per second (SPS), and
550550
the estimated remaining time until completion ("expected time of arrival"; ETA).
@@ -627,7 +627,7 @@ def sample_numpyro_nuts(
627627
num_chains=chains,
628628
postprocess_fn=None,
629629
chain_method=chain_method,
630-
progress_bar=progress_bar,
630+
progress_bar=progressbar,
631631
)
632632

633633
tic2 = datetime.now()

0 commit comments

Comments
 (0)