@@ -1151,7 +1151,7 @@ def test_wald_logp_custom_points(self, value, mu, lam, phi, alpha, logp):
1151
1151
decimals = select_by_precision (float64 = 6 , float32 = 1 )
1152
1152
assert_almost_equal (model .fastlogp (pt ), logp , decimal = decimals , err_msg = str (pt ))
1153
1153
1154
- def test_beta (self ):
1154
+ def test_beta_logp (self ):
1155
1155
self .check_logp (
1156
1156
Beta ,
1157
1157
Unit ,
@@ -1164,12 +1164,17 @@ def test_beta(self):
1164
1164
{"mu" : Unit , "sigma" : Rplus },
1165
1165
beta_mu_sigma ,
1166
1166
)
1167
+
1168
+ @pytest .mark .skipif (
1169
+ condition = (aesara .config .floatX == "float32" ),
1170
+ reason = "Fails on float32 due to numerical issues" ,
1171
+ )
1172
+ def test_beta_logcdf (self ):
1167
1173
self .check_logcdf (
1168
1174
Beta ,
1169
1175
Unit ,
1170
1176
{"alpha" : Rplus , "beta" : Rplus },
1171
1177
lambda value , alpha , beta : sp .beta .logcdf (value , alpha , beta ),
1172
- decimal = select_by_precision (float64 = 5 , float32 = 3 ),
1173
1178
)
1174
1179
1175
1180
def test_kumaraswamy (self ):
@@ -1373,7 +1378,7 @@ def test_lognormal(self):
1373
1378
lambda value , mu , sigma : sp .lognorm .logcdf (value , sigma , 0 , np .exp (mu )),
1374
1379
)
1375
1380
1376
- def test_t (self ):
1381
+ def test_studentt_logp (self ):
1377
1382
self .check_logp (
1378
1383
StudentT ,
1379
1384
R ,
@@ -1386,21 +1391,24 @@ def test_t(self):
1386
1391
{"nu" : Rplus , "mu" : R , "sigma" : Rplus },
1387
1392
lambda value , nu , mu , sigma : sp .t .logpdf (value , nu , mu , sigma ),
1388
1393
)
1394
+
1395
+ @pytest .mark .skipif (
1396
+ condition = (aesara .config .floatX == "float32" ),
1397
+ reason = "Fails on float32 due to numerical issues" ,
1398
+ )
1399
+ def test_studentt_logcdf (self ):
1389
1400
self .check_logcdf (
1390
1401
StudentT ,
1391
1402
R ,
1392
1403
{"nu" : Rplus , "mu" : R , "lam" : Rplus },
1393
1404
lambda value , nu , mu , lam : sp .t .logcdf (value , nu , mu , lam ** - 0.5 ),
1394
1405
)
1395
- # TODO: reenable when PR #4736 is merged
1396
- """
1397
1406
self .check_logcdf (
1398
1407
StudentT ,
1399
1408
R ,
1400
1409
{"nu" : Rplus , "mu" : R , "sigma" : Rplus },
1401
1410
lambda value , nu , mu , sigma : sp .t .logcdf (value , nu , mu , sigma ),
1402
1411
)
1403
- """
1404
1412
1405
1413
def test_cauchy (self ):
1406
1414
self .check_logp (
0 commit comments