Skip to content

Commit

Permalink
Removed redundant out of bounds parameter tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
gokuld committed Apr 1, 2023
1 parent 4598cd4 commit b25c46b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tests/distributions/test_continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,17 +430,6 @@ def scipy_log_cdf(value, a, b):
lambda q, a, b: (1 - (1 - q) ** (1 / b)) ** (1 / a),
)

# Custom logp / logcdf / icdf check for invalid parameters
for a, b in ((-2, 0.5), (0.5, -2), (-2, -2)):
invalid_dist = pm.Kumaraswamy.dist(a=a, b=b)
with pytensor.config.change_flags(mode=Mode("py")):
with pytest.raises(ParameterValueError):
logp(invalid_dist, np.array(0.5)).eval()
with pytest.raises(ParameterValueError):
logcdf(invalid_dist, np.array(0.5)).eval()
with pytest.raises(ParameterValueError):
icdf(invalid_dist, np.array(0.5)).eval()

def test_exponential(self):
check_logp(
pm.Exponential,
Expand Down

0 comments on commit b25c46b

Please sign in to comment.