We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
int
np.ma.masked_array
test_marginalized_change_point_model
1 parent d929d23 commit 3fcc613Copy full SHA for 3fcc613
pymc_experimental/tests/model/test_marginal_model.py
@@ -42,7 +42,9 @@ def disaster_model():
42
early_rate = pm.Exponential("early_rate", 1.0, initval=3)
43
late_rate = pm.Exponential("late_rate", 1.0, initval=1)
44
rate = pm.math.switch(switchpoint >= years, early_rate, late_rate)
45
- with pytest.warns(ImputationWarning):
+ with pytest.warns(ImputationWarning), pytest.warns(
46
+ RuntimeWarning, match="invalid value encountered in cast"
47
+ ):
48
disasters = pm.Poisson("disasters", rate, observed=disaster_data)
49
50
return disaster_model, years
0 commit comments