Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbdias committed Nov 22, 2024
1 parent 05a65df commit 140f1f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pyRDDLGym/core/intervals.py
Original file line number Diff line number Diff line change
Expand Up @@ -914,8 +914,8 @@ def _bound_random(self, expr, intervals):
return self._bound_student(expr, intervals)
elif name == 'Gumbel':
return self._bound_gumbel(expr, intervals)
elif name == 'Laplace':
return self._bound_laplace(expr, intervals)
# elif name == 'Laplace':
# return self._bound_laplace(expr, intervals)
elif name == 'Cauchy':
return self._bound_cauchy(expr, intervals)
elif name == 'Gompertz':
Expand Down Expand Up @@ -982,8 +982,8 @@ def _bound_bernoulli(self, expr, intervals):
lower = np.zeros(shape=np.shape(lp), dtype=np.int64)
upper = np.ones(shape=np.shape(up), dtype=np.int64)

lower = self._mask_assign(lower, lp >= lower_percentile, 1)
upper = self._mask_assign(upper, up <= upper_percentile, 0)
lower = self._mask_assign(lower, lower_percentile > (1 - lp), 1)
upper = self._mask_assign(upper, upper_percentile <= (1 - up), 0)

return (lower, upper)

Expand All @@ -1007,8 +1007,8 @@ def _bound_normal(self, expr, intervals):
# mean + std * normal_inverted_cdf(p)
lower_percentile, upper_percentile = self.percentiles

lower = lm * np.sqrt(lv) * stats.norm.ppf(lower_percentile)
upper = um * np.sqrt(uv) * stats.norm.ppf(upper_percentile)
lower = lm + np.sqrt(lv) * stats.norm.ppf(lower_percentile)
upper = um + np.sqrt(uv) * stats.norm.ppf(upper_percentile)
return (lower, upper)

if self.strategy == IntervalAnalysisStrategy.MEAN:
Expand Down

0 comments on commit 140f1f1

Please sign in to comment.