Skip to content

Commit 32f1ce6

Browse files
committed
New sample_posterior_predictive API
1 parent bb1456d commit 32f1ce6

5 files changed

Lines changed: 968 additions & 262 deletions

File tree

pymc/exceptions.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414

1515
__all__ = [
16+
"ImplicitFreezeWarning",
1617
"ImputationWarning",
1718
"IncorrectArgumentsError",
1819
"SamplingError",
@@ -42,6 +43,17 @@ class ImputationWarning(UserWarning):
4243
pass
4344

4445

46+
class ImplicitFreezeWarning(UserWarning):
47+
"""Warning that trace values are being reused instead of resampled.
48+
49+
Emitted by ``sample_posterior_predictive`` when a trace basic RV has a
50+
volatile upstream (changed Data/coords or a resampled ancestor) but is not
51+
listed in ``sample_vars``.
52+
"""
53+
54+
pass
55+
56+
4557
class ShapeWarning(UserWarning):
4658
"""Something that could lead to shape problems down the line."""
4759

0 commit comments

Comments
 (0)