@@ -1128,7 +1128,7 @@ def test_wald_logp_custom_points(self, value, mu, lam, phi, alpha, logp):
1128
1128
decimals = select_by_precision (float64 = 6 , float32 = 1 )
1129
1129
assert_almost_equal (model .fastlogp (pt ), logp , decimal = decimals , err_msg = str (pt ))
1130
1130
1131
- def test_beta (self ):
1131
+ def test_beta_logp (self ):
1132
1132
self .check_logp (
1133
1133
Beta ,
1134
1134
Unit ,
@@ -1141,12 +1141,17 @@ def test_beta(self):
1141
1141
{"mu" : Unit , "sigma" : Rplus },
1142
1142
beta_mu_sigma ,
1143
1143
)
1144
+
1145
+ @pytest .mark .xfail (
1146
+ condition = (aesara .config .floatX == "float32" ),
1147
+ reason = "Fails on float32 due to numerical issues" ,
1148
+ )
1149
+ def test_beta_logcdf (self ):
1144
1150
self .check_logcdf (
1145
1151
Beta ,
1146
1152
Unit ,
1147
1153
{"alpha" : Rplus , "beta" : Rplus },
1148
1154
lambda value , alpha , beta : sp .beta .logcdf (value , alpha , beta ),
1149
- decimal = select_by_precision (float64 = 5 , float32 = 3 ),
1150
1155
)
1151
1156
1152
1157
def test_kumaraswamy (self ):
@@ -1351,7 +1356,7 @@ def test_lognormal(self):
1351
1356
lambda value , mu , sigma : sp .lognorm .logcdf (value , sigma , 0 , np .exp (mu )),
1352
1357
)
1353
1358
1354
- def test_t (self ):
1359
+ def test_studentt_logp (self ):
1355
1360
self .check_logp (
1356
1361
StudentT ,
1357
1362
R ,
@@ -1364,6 +1369,12 @@ def test_t(self):
1364
1369
{"nu" : Rplus , "mu" : R , "sigma" : Rplus },
1365
1370
lambda value , nu , mu , sigma : sp .t .logpdf (value , nu , mu , sigma ),
1366
1371
)
1372
+
1373
+ @pytest .mark .xfail (
1374
+ condition = (aesara .config .floatX == "float32" ),
1375
+ reason = "Fails on float32 due to numerical issues" ,
1376
+ )
1377
+ def test_studentt_logcdf (self ):
1367
1378
self .check_logcdf (
1368
1379
StudentT ,
1369
1380
R ,
0 commit comments