Skip to content

Commit c549ae6

Browse files
authored
Merge pull request #1011 from stan-dev/fix-pathfinder-test
Test pathfinder for initialization with psis_resample=FALSE
2 parents 487009b + 10ca2d4 commit c549ae6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/testthat/test-fit-init.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ test_that("Multi Pathfinder method works as init", {
6464
test_that("Pathfinder method with psis_resample as false works as init", {
6565
mod_logistic <- testing_model("logistic")
6666
utils::capture.output(fit_path_init <- mod_logistic$pathfinder(
67-
seed=1234, data = data_list_logistic, refresh = 0, num_paths = 1))
67+
seed=1234, data = data_list_logistic, refresh = 0, num_paths = 1,
68+
psis_resample = FALSE))
6869
expect_no_error(test_inits(mod_logistic, fit_path_init, data_list_logistic))
6970
})
7071

0 commit comments

Comments
 (0)