@@ -2544,18 +2544,24 @@ def test_multidimensional_beta_construction(self):
2544
2544
with Model ():
2545
2545
Beta ("beta" , alpha = 1.0 , beta = 1.0 , size = (10 , 20 ))
2546
2546
2547
+ @pytest .mark .xfail (
2548
+ condition = (aesara .config .floatX == "float32" ),
2549
+ reason = "Some combinations underflow to -inf in float32 in pymc version" ,
2550
+ )
2547
2551
def test_rice (self ):
2548
2552
self .check_logp (
2549
2553
Rice ,
2550
2554
Rplus ,
2551
- {"nu " : Rplus , "sigma" : Rplusbig },
2552
- lambda value , nu , sigma : sp .rice .logpdf (value , b = nu / sigma , loc = 0 , scale = sigma ),
2555
+ {"b " : Rplus , "sigma" : Rplusbig },
2556
+ lambda value , b , sigma : sp .rice .logpdf (value , b = b , loc = 0 , scale = sigma ),
2553
2557
)
2558
+
2559
+ def test_rice_nu (self ):
2554
2560
self .check_logp (
2555
2561
Rice ,
2556
2562
Rplus ,
2557
- {"b " : Rplus , "sigma" : Rplusbig },
2558
- lambda value , b , sigma : sp .rice .logpdf (value , b = b , loc = 0 , scale = sigma ),
2563
+ {"nu " : Rplus , "sigma" : Rplusbig },
2564
+ lambda value , nu , sigma : sp .rice .logpdf (value , b = nu / sigma , loc = 0 , scale = sigma ),
2559
2565
)
2560
2566
2561
2567
def test_moyal_logp (self ):
0 commit comments