Skip to content

Commit 942a1bd

Browse files
author
Christopher Fonnesbeck
committed
Fixed test failure on HPD interval update
1 parent 4c27cc4 commit 942a1bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pymc3/tests/test_stats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,13 +387,13 @@ class TestDfSummary(bf.ModelBackendSampledTestCase):
387387
def test_column_names(self):
388388
ds = df_summary(self.mtrace, batches=3)
389389
npt.assert_equal(np.array(['mean', 'sd', 'mc_error',
390-
'hpd_5', 'hpd_95']),
390+
'hpd_2.5', 'hpd_97.5']),
391391
ds.columns)
392392

393393
def test_column_names_decimal_hpd(self):
394394
ds = df_summary(self.mtrace, batches=3, alpha=0.001)
395395
npt.assert_equal(np.array(['mean', 'sd', 'mc_error',
396-
'hpd_0.1', 'hpd_99.9']),
396+
'hpd_0.05', 'hpd_99.95']),
397397
ds.columns)
398398

399399
def test_column_names_custom_function(self):
@@ -410,7 +410,7 @@ def customf(x):
410410
ds = df_summary(self.mtrace, batches=3,
411411
stat_funcs=[customf], extend=True)
412412
npt.assert_equal(np.array(['mean', 'sd', 'mc_error',
413-
'hpd_5', 'hpd_95', 'my_mean']),
413+
'hpd_2.5', 'hpd_97.5', 'my_mean']),
414414
ds.columns)
415415

416416
def test_value_alignment(self):

0 commit comments

Comments
 (0)