Skip to content

Commit 8a436d8

Browse files
Fix progressbar with nested compound step samplers (#7776)
* Fix missing import * Fix progressbar with nested compound step samplers * Move progressbar code to its own module * Rename `make_update_stats_functions` to `_make_progressbar_update_functions` * Cleanup progress_bar * Abstract special behavior of NUTS divergences in ProgressBar Every step sampler can now decide whether sampling is failing or not by setting "failing" in the returned update dict * Correct `stats_dtypes_shapes` is `CategoricalGibbsMetropolis` --------- Co-authored-by: Jesse Grabowski <[email protected]>
1 parent dea3aef commit 8a436d8

File tree

20 files changed

+558
-472
lines changed

20 files changed

+558
-472
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
tests/distributions/test_shape_utils.py
7070
tests/distributions/test_mixture.py
7171
tests/test_testing.py
72+
tests/test_progress_bar.py
7273
7374
- |
7475
tests/distributions/test_continuous.py

pymc/backends/arviz.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939
import pymc
4040

4141
from pymc.model import Model, modelcontext
42+
from pymc.progress_bar import CustomProgress, default_progress_theme
4243
from pymc.pytensorf import PointFunc, extract_obs_data
43-
from pymc.util import CustomProgress, default_progress_theme, get_default_varnames
44+
from pymc.util import get_default_varnames
4445

4546
if TYPE_CHECKING:
4647
from pymc.backends.base import MultiTrace

pymc/logprob/abstract.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
# SOFTWARE.
3636

3737
import abc
38+
import warnings
3839

3940
from collections.abc import Sequence
4041
from functools import singledispatch

0 commit comments

Comments
 (0)