Skip to content

Commit c5fcc70

Browse files
committed
resolved conflict in test_sampling.py
2 parents 7d01461 + 2db28f0 commit c5fcc70

23 files changed

+329
-514
lines changed

.github/workflows/arviz_compat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
run: |
8383
conda activate pymc-test-py39
8484
pip uninstall arviz -y
85-
pip install git+git://github.com/arviz-devs/arviz.git
85+
pip install git+https://github.com/arviz-devs/arviz
8686
- name: Run tests
8787
run: |
8888
python -m pytest -vv --cov=pymc --cov-report=xml --cov-report term --durations=50 $TEST_SUBSET

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
exclude: ^requirements-dev\.txt$
1515
- id: trailing-whitespace
1616
- repo: https://github.com/pre-commit/mirrors-mypy
17-
rev: v0.931
17+
rev: v0.940
1818
hooks:
1919
- id: mypy
2020
name: Run static type checks
@@ -37,7 +37,7 @@ repos:
3737
- id: isort
3838
name: isort
3939
- repo: https://github.com/asottile/pyupgrade
40-
rev: v2.31.0
40+
rev: v2.31.1
4141
hooks:
4242
- id: pyupgrade
4343
args: [--py37-plus]

RELEASE-NOTES.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Instead update the vNext section until 4.0.0 is out.
77
⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠
88
-->
99

10-
## PyMC vNext (4.0.0b1 → 4.0.0b2 → 4.0.0b3 → 4.0.0b4 → 4.0.0)
11-
⚠ The changes below are the delta between the upcoming releases `v3.11.5` →...→ `v4.0.0`.
10+
## PyMC vNext (4.0.0b1 → ... → 4.0.0b4 → 4.0.0)
11+
⚠ The changes below are the delta between the releases `v3.11.5` →...→ `v4.0.0`.
1212

1313
### Not-yet working features
1414
We plan to get these working again, but at this point their inner workings have not been refactored.
@@ -74,6 +74,7 @@ All of the above apply to:
7474
- The function `replace_with_values` function has been added to `gp.utils`.
7575
- `MarginalSparse` has been renamed `MarginalApprox`.
7676
- Removed `MixtureSameFamily`. `Mixture` is now capable of handling batched multivariate components (see [#5438](https://github.com/pymc-devs/pymc/pull/5438)).
77+
- `ZeroInflatedPoisson` `theta` parameter was renamed to `mu` (see [#5584](https://github.com/pymc-devs/pymc/pull/5584)).
7778
- ...
7879

7980
### Expected breaks
@@ -128,6 +129,9 @@ This includes API changes we did not warn about since at least `3.11.0` (2021-01
128129
- Univariate censored distributions are now available via `pm.Censored`. [#5169](https://github.com/pymc-devs/pymc/pull/5169)
129130
- Nested models now inherit the parent model's coordinates. [#5344](https://github.com/pymc-devs/pymc/pull/5344)
130131
- `softmax` and `log_softmax` functions added to `math` module (see [#5279](https://github.com/pymc-devs/pymc/pull/5279)).
132+
- Adding support for blackjax's NUTS sampler `pymc.sampling_jax` (see [#5477](ihttps://github.com/pymc-devs/pymc/pull/5477))
133+
- `pymc.sampling_jax` samplers support `log_likelihood`, `observed_data`, and `sample_stats` in returned InferenceData object (see [#5189](https://github.com/pymc-devs/pymc/pull/5189))
134+
- Adding support for `pm.Deterministic` in `pymc.sampling_jax` (see [#5182](https://github.com/pymc-devs/pymc/pull/5182))
131135
- ...
132136

133137

pymc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# pylint: disable=wildcard-import
16-
__version__ = "4.0.0b3"
16+
__version__ = "4.0.0b4"
1717

1818
import logging
1919
import multiprocessing as mp

pymc/aesaraf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,9 @@ def local_check_parameter_to_ninf_switch(fgraph, node):
941941
)
942942

943943

944-
def compile_pymc(inputs, outputs, mode=None, **kwargs):
944+
def compile_pymc(
945+
inputs, outputs, mode=None, **kwargs
946+
) -> Callable[..., Union[np.ndarray, List[np.ndarray]]]:
945947
"""Use ``aesara.function`` with specialized pymc rewrites always enabled.
946948
947949
Included rewrites

pymc/backends/arviz.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Any,
88
Dict,
99
Iterable,
10+
Mapping,
1011
Optional,
1112
Tuple,
1213
Union,
@@ -532,8 +533,8 @@ def to_inference_data(self):
532533
def to_inference_data(
533534
trace: Optional["MultiTrace"] = None,
534535
*,
535-
prior: Optional[Dict[str, Any]] = None,
536-
posterior_predictive: Optional[Dict[str, Any]] = None,
536+
prior: Optional[Mapping[str, Any]] = None,
537+
posterior_predictive: Optional[Mapping[str, Any]] = None,
537538
log_likelihood: Union[bool, Iterable[str]] = True,
538539
coords: Optional[CoordSpec] = None,
539540
dims: Optional[DimSpec] = None,

0 commit comments

Comments
 (0)