Skip to content

Commit 063dfb9

Browse files
committed
Add metric file output for testing CmdStanMCMC construction from output files
1 parent 84ae036 commit 063dfb9

File tree

5 files changed

+30
-0
lines changed

5 files changed

+30
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
{
3+
"stepsize" : 0.82296841508129293,
4+
"metric_type" : "diag_e",
5+
"inv_metric" : [ 0.047463090328577061, 0.050351054427227954 ]
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
{
3+
"stepsize" : 0.80723664360220015,
4+
"metric_type" : "diag_e",
5+
"inv_metric" : [ 0.043061277646603849, 0.055466639648440334 ]
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
{
3+
"stepsize" : 0.77878893921149328,
4+
"metric_type" : "diag_e",
5+
"inv_metric" : [ 0.047900911429023758, 0.06720219760749839 ]
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
{
3+
"stepsize" : 0.85214264077664958,
4+
"metric_type" : "diag_e",
5+
"inv_metric" : [ 0.047588440045735959, 0.061979369732888139 ]
6+
}

test/test_sample.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,6 +1743,12 @@ def test_metadata() -> None:
17431743
os.path.join(DATAFILES_PATH, 'logistic_output_3.csv'),
17441744
os.path.join(DATAFILES_PATH, 'logistic_output_4.csv'),
17451745
]
1746+
runset._metric_files = [
1747+
os.path.join(DATAFILES_PATH, 'logistic_output_1_metric.json'),
1748+
os.path.join(DATAFILES_PATH, 'logistic_output_2_metric.json'),
1749+
os.path.join(DATAFILES_PATH, 'logistic_output_3_metric.json'),
1750+
os.path.join(DATAFILES_PATH, 'logistic_output_4_metric.json'),
1751+
]
17461752
retcodes = runset._retcodes
17471753
for i in range(len(retcodes)):
17481754
runset._set_retcode(i, 0)

0 commit comments

Comments
 (0)