Skip to content

Commit b536f91

Browse files
committed
Remove stale test_sample_generate_values
sample_posterior_predictive no longer accepts non-integer samples
1 parent 7aafe10 commit b536f91

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

pymc/tests/test_shape_handling.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -101,20 +101,6 @@ def samples_to_broadcast_to(request, samples_to_broadcast):
101101
return to_shape, size, samples, broadcast_shape
102102

103103

104-
@pytest.fixture
105-
def fixture_model():
106-
with pm.Model() as model:
107-
n = 5
108-
dim = 4
109-
with pm.Model():
110-
cov = pm.InverseGamma("cov", alpha=1, beta=1)
111-
x = pm.Normal("x", mu=np.ones((dim,)), sigma=pm.math.sqrt(cov), shape=(n, dim))
112-
eps = pm.HalfNormal("eps", np.ones((n, 1)), shape=(n, dim))
113-
mu = pm.Deterministic("mu", at.sum(x + eps, axis=-1))
114-
y = pm.Normal("y", mu=mu, sigma=1, shape=(n,))
115-
return model, [cov, x, eps, y]
116-
117-
118104
class TestShapesBroadcasting:
119105
@pytest.mark.parametrize(
120106
"bad_input",
@@ -215,16 +201,6 @@ def test_broadcast_dist_samples_to(self, samples_to_broadcast_to):
215201
broadcast_dist_samples_to(to_shape, samples, size=size)
216202

217203

218-
@pytest.mark.xfail(reason="InverseGamma was not yet refactored")
219-
def test_sample_generate_values(fixture_model, fixture_sizes):
220-
model, RVs = fixture_model
221-
size = to_tuple(fixture_sizes)
222-
with model:
223-
prior = pm.sample_prior_predictive(samples=fixture_sizes)
224-
for rv in RVs:
225-
assert prior[rv.name].shape == size + tuple(rv.distribution.shape)
226-
227-
228204
class TestShapeDimsSize:
229205
@pytest.mark.parametrize("param_shape", [(), (3,)])
230206
@pytest.mark.parametrize("batch_shape", [(), (3,)])

0 commit comments

Comments
 (0)