hakaru-dev / hakaru

A probabilistic programming language
BSD 3-Clause "New" or "Revised" License
309 stars 30 forks source link

Exponential to Laplace Test #176

Closed mkhattab940 closed 6 years ago

mkhattab940 commented 6 years ago
### Failure in: 6:RoundTrip:0:5:t_exponential_to_laplace:1
haskell/Tests/TestTools.hs:130
expected:
X <~ gamma(1/1, 1/1)
Y <~ gamma(1/1, 1/1)
return prob2real(X) + prob2real(Y) * (-1/1)
but got:
X5 <~ gamma(1/1, 5/1)
Y3 <~ gamma(1/1, 1/3)
return prob2real(X5) * (+1/5) + prob2real(Y3) * (-3/1)

Cases: 182  Tried: 95  Errors: 0  Failures: 8
Cases: 182  Tried: 96  Errors: 0  Failures: 8