Skip to content

Commit db7c493

Browse files
authored
remove sample_ppc(_w) (#3790)
* remove sample_ppc(_w) * fix typo
1 parent 6e42335 commit db7c493

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

RELEASE-NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
- use [fastprogress](https://github.com/fastai/fastprogress) instead of tqdm [#3693](https://github.com/pymc-devs/pymc3/pull/3693)
77
- `DEMetropolis` can now tune both `lambda` and `scaling` parameters, but by default neither of them are tuned. See [#3743](https://github.com/pymc-devs/pymc3/pull/3743) for more info.
88

9+
### Maintenance
10+
- Remove `sample_ppc` and `sample_ppc_w` that were deprecated in 3.6.
11+
912
## PyMC3 3.8 (November 29 2019)
1013

1114
### New features

pymc3/sampling.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@
7171
"sample_posterior_predictive_w",
7272
"init_nuts",
7373
"sample_prior_predictive",
74-
"sample_ppc",
75-
"sample_ppc_w",
7674
]
7775

7876
STEP_METHODS = (
@@ -1555,13 +1553,6 @@ def sample_posterior_predictive(
15551553
return ppc_trace
15561554

15571555

1558-
def sample_ppc(*args, **kwargs):
1559-
"""Deprecated: use :func:`~sampling.sample_posterior_predictive`."""
1560-
message = "sample_ppc() is deprecated. Please use sample_posterior_predictive()"
1561-
warnings.warn(message, DeprecationWarning, stacklevel=2)
1562-
return sample_posterior_predictive(*args, **kwargs)
1563-
1564-
15651556
def sample_posterior_predictive_w(
15661557
traces,
15671558
samples: Optional[int] = None,
@@ -1692,13 +1683,6 @@ def sample_posterior_predictive_w(
16921683
return {k: np.asarray(v) for k, v in ppc.items()}
16931684

16941685

1695-
def sample_ppc_w(*args, **kwargs):
1696-
"""Deprecated: use :func:`~sampling.sample_posterior_predictive_w`."""
1697-
message = "sample_ppc() is deprecated. Please use sample_posterior_predictive_w()"
1698-
warnings.warn(message, DeprecationWarning, stacklevel=2)
1699-
return sample_posterior_predictive_w(*args, **kwargs)
1700-
1701-
17021686
def sample_prior_predictive(
17031687
samples=500,
17041688
model: Optional[Model] = None,

0 commit comments

Comments
 (0)